ProposalDataPatterns extension
Adds pattern-matching-related methods to ProposalData.
- on
Methods
-
map<
TResult extends Object?> (TResult $default(_ProposalData value)) → TResult -
Available on ProposalData, provided by the ProposalDataPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ProposalData value)?) → TResult? -
Available on ProposalData, provided by the ProposalDataPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_ProposalData value)?, {required TResult orElse()}) → TResult -
Available on ProposalData, provided by the ProposalDataPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(int id, int expiry, List< Relay> relays, ConnectionMetadata proposer, Map<String, RequiredNamespace> requiredNamespaces, Map<String, RequiredNamespace> optionalNamespaces, String pairingTopic, Map<String, String> ? sessionProperties, Map<String, Namespace> ? generatedNamespaces)?, {required TResult orElse()}) → TResult -
Available on ProposalData, provided by the ProposalDataPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> (TResult $default(int id, int expiry, List< Relay> relays, ConnectionMetadata proposer, Map<String, RequiredNamespace> requiredNamespaces, Map<String, RequiredNamespace> optionalNamespaces, String pairingTopic, Map<String, String> ? sessionProperties, Map<String, Namespace> ? generatedNamespaces)) → TResult -
Available on ProposalData, provided by the ProposalDataPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(int id, int expiry, List< Relay> relays, ConnectionMetadata proposer, Map<String, RequiredNamespace> requiredNamespaces, Map<String, RequiredNamespace> optionalNamespaces, String pairingTopic, Map<String, String> ? sessionProperties, Map<String, Namespace> ? generatedNamespaces)?) → TResult? -
Available on ProposalData, provided by the ProposalDataPatterns extension
A variant ofwhen
that fallback to returningnull