SceneFilterPatterns extension
Adds pattern-matching-related methods to SceneFilter.
- on
Methods
-
map<
TResult extends Object?> (TResult $default(_SceneFilter value)) → TResult -
Available on SceneFilter, provided by the SceneFilterPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_SceneFilter value)?) → TResult? -
Available on SceneFilter, provided by the SceneFilterPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_SceneFilter value)?, {required TResult orElse()}) → TResult -
Available on SceneFilter, provided by the SceneFilterPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String? searchQuery, int? minRating, String? studioId, List< String> ? performerIds, List<String> ? includeTags, List<String> ? excludeTags, bool? isWatched, DateTime? startDate, DateTime? endDate, List<String> ? resolutions, List<String> ? orientations, int? minDuration, int? maxDuration)?, {required TResult orElse()}) → TResult -
Available on SceneFilter, provided by the SceneFilterPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String? searchQuery, int? minRating, String? studioId, List< String> ? performerIds, List<String> ? includeTags, List<String> ? excludeTags, bool? isWatched, DateTime? startDate, DateTime? endDate, List<String> ? resolutions, List<String> ? orientations, int? minDuration, int? maxDuration)) → TResult -
Available on SceneFilter, provided by the SceneFilterPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? searchQuery, int? minRating, String? studioId, List< String> ? performerIds, List<String> ? includeTags, List<String> ? excludeTags, bool? isWatched, DateTime? startDate, DateTime? endDate, List<String> ? resolutions, List<String> ? orientations, int? minDuration, int? maxDuration)?) → TResult? -
Available on SceneFilter, provided by the SceneFilterPatterns extension
A variant ofwhenthat fallback to returningnull