InfoPatterns extension
Adds pattern-matching-related methods to Info.
- on
Methods
-
map<
TResult extends Object?> (TResult $default(_Info value)) → TResult -
Available on Info, provided by the InfoPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_Info value)?) → TResult? -
Available on Info, provided by the InfoPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_Info value)?, {required TResult orElse()}) → TResult -
Available on Info, provided by the InfoPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String title, String? summary, String? description, String? termsOfService, Contact? contact, License? license, String version)?, {required TResult orElse()}) → TResult -
Available on Info, provided by the InfoPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String title, String? summary, String? description, String? termsOfService, Contact? contact, License? license, String version)) → TResult -
Available on Info, provided by the InfoPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String title, String? summary, String? description, String? termsOfService, Contact? contact, License? license, String version)?) → TResult? -
Available on Info, provided by the InfoPatterns extension
A variant ofwhenthat fallback to returningnull