SubscribeOptionsPatterns extension
Adds pattern-matching-related methods to SubscribeOptions.
Methods
-
map<
TResult extends Object?> (TResult $default(_SubscribeOptions value)) → TResult -
Available on SubscribeOptions, provided by the SubscribeOptionsPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_SubscribeOptions value)?) → TResult? -
Available on SubscribeOptions, provided by the SubscribeOptionsPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_SubscribeOptions value)?, {required TResult orElse()}) → TResult -
Available on SubscribeOptions, provided by the SubscribeOptionsPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String topic, TransportType transportType, bool skipSubscribe)?, {required TResult orElse()}) → TResult -
Available on SubscribeOptions, provided by the SubscribeOptionsPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> (TResult $default(String topic, TransportType transportType, bool skipSubscribe)) → TResult -
Available on SubscribeOptions, provided by the SubscribeOptionsPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String topic, TransportType transportType, bool skipSubscribe)?) → TResult? -
Available on SubscribeOptions, provided by the SubscribeOptionsPatterns extension
A variant ofwhen
that fallback to returningnull