QuoteFeePatterns extension
Adds pattern-matching-related methods to QuoteFee.
- on
Methods
-
map<
TResult extends Object?> (TResult $default(_QuoteFee value)) → TResult -
Available on QuoteFee, provided by the QuoteFeePatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_QuoteFee value)?) → TResult? -
Available on QuoteFee, provided by the QuoteFeePatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_QuoteFee value)?, {required TResult orElse()}) → TResult -
Available on QuoteFee, provided by the QuoteFeePatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String label, String amount, ExchangeAsset currency)?, {required TResult orElse()}) → TResult -
Available on QuoteFee, provided by the QuoteFeePatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String id, String label, String amount, ExchangeAsset currency)) → TResult -
Available on QuoteFee, provided by the QuoteFeePatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String label, String amount, ExchangeAsset currency)?) → TResult? -
Available on QuoteFee, provided by the QuoteFeePatterns extension
A variant ofwhenthat fallback to returningnull