LivePhotoPatterns extension
Adds pattern-matching-related methods to LivePhoto.
- on
Methods
-
map<
TResult extends Object?> (TResult $default(_LivePhoto value)) → TResult -
Available on LivePhoto, provided by the LivePhotoPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_LivePhoto value)?) → TResult? -
Available on LivePhoto, provided by the LivePhotoPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_LivePhoto value)?, {required TResult orElse()}) → TResult -
Available on LivePhoto, provided by the LivePhotoPatterns extension
A variant ofmapthat fallback to returningorElse.