NotificationRegisterPushPlatformPatterns extension
Adds pattern-matching-related methods to NotificationRegisterPushPlatform.
Methods
-
map<
TResult extends Object?> ({required TResult knownValue(NotificationRegisterPushPlatformKnownValue value), required TResult unknown(NotificationRegisterPushPlatformUnknown value)}) → TResult -
Available on NotificationRegisterPushPlatform, provided by the NotificationRegisterPushPlatformPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> ({TResult? knownValue(NotificationRegisterPushPlatformKnownValue value)?, TResult? unknown(NotificationRegisterPushPlatformUnknown value)?}) → TResult? -
Available on NotificationRegisterPushPlatform, provided by the NotificationRegisterPushPlatformPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> ({TResult knownValue(NotificationRegisterPushPlatformKnownValue value)?, TResult unknown(NotificationRegisterPushPlatformUnknown value)?, required TResult orElse()}) → TResult -
Available on NotificationRegisterPushPlatform, provided by the NotificationRegisterPushPlatformPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> ({TResult knownValue(KnownNotificationRegisterPushPlatform data)?, TResult unknown(String data)?, required TResult orElse()}) → TResult -
Available on NotificationRegisterPushPlatform, provided by the NotificationRegisterPushPlatformPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> ({required TResult knownValue(KnownNotificationRegisterPushPlatform data), required TResult unknown(String data)}) → TResult -
Available on NotificationRegisterPushPlatform, provided by the NotificationRegisterPushPlatformPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> ({TResult? knownValue(KnownNotificationRegisterPushPlatform data)?, TResult? unknown(String data)?}) → TResult? -
Available on NotificationRegisterPushPlatform, provided by the NotificationRegisterPushPlatformPatterns extension
A variant ofwhenthat fallback to returningnull