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