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