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

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_SceneFilter value)?) → TResult?

Available on SceneFilter, provided by the SceneFilterPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_SceneFilter value)?, {required TResult orElse()}) → TResult

Available on SceneFilter, provided by the SceneFilterPatterns extension

A variant of map that fallback to returning orElse.
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 of when that fallback to an orElse callback.
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

A switch-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 of when that fallback to returning null