PerformerPatterns extension

Adds pattern-matching-related methods to Performer.

on

Methods

map<TResult extends Object?>(TResult $default(_Performer value)) → TResult

Available on Performer, provided by the PerformerPatterns extension

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

Available on Performer, provided by the PerformerPatterns extension

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

Available on Performer, provided by the PerformerPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String id, String name, String? disambiguation, List<String> urls, String? gender, String? birthdate, String? ethnicity, String? country, String? eyeColor, int? heightCm, String? measurements, String? fakeTits, double? penisLength, String? circumcised, String? careerStart, String? careerEnd, String? tattoos, String? piercings, List<String> aliasList, bool favorite, String? imagePath, int sceneCount, int imageCount, int galleryCount, int groupCount, int? rating100, String? details, String? deathDate, String? hairColor, int? weight, List<String> tagIds, List<String> tagNames)?, {required TResult orElse()}) → TResult

Available on Performer, provided by the PerformerPatterns extension

A variant of when that fallback to an orElse callback.
when<TResult extends Object?>(TResult $default(String id, String name, String? disambiguation, List<String> urls, String? gender, String? birthdate, String? ethnicity, String? country, String? eyeColor, int? heightCm, String? measurements, String? fakeTits, double? penisLength, String? circumcised, String? careerStart, String? careerEnd, String? tattoos, String? piercings, List<String> aliasList, bool favorite, String? imagePath, int sceneCount, int imageCount, int galleryCount, int groupCount, int? rating100, String? details, String? deathDate, String? hairColor, int? weight, List<String> tagIds, List<String> tagNames)) → TResult

Available on Performer, provided by the PerformerPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String id, String name, String? disambiguation, List<String> urls, String? gender, String? birthdate, String? ethnicity, String? country, String? eyeColor, int? heightCm, String? measurements, String? fakeTits, double? penisLength, String? circumcised, String? careerStart, String? careerEnd, String? tattoos, String? piercings, List<String> aliasList, bool favorite, String? imagePath, int sceneCount, int imageCount, int galleryCount, int groupCount, int? rating100, String? details, String? deathDate, String? hairColor, int? weight, List<String> tagIds, List<String> tagNames)?) → TResult?

Available on Performer, provided by the PerformerPatterns extension

A variant of when that fallback to returning null