TonNftAttributePatterns extension
Adds pattern-matching-related methods to TonNftAttribute.
Methods
-
map<
TResult extends Object?> (TResult $default(_TonNftAttribute value)) → TResult -
Available on TonNftAttribute, provided by the TonNftAttributePatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_TonNftAttribute value)?) → TResult? -
Available on TonNftAttribute, provided by the TonNftAttributePatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_TonNftAttribute value)?, {required TResult orElse()}) → TResult -
Available on TonNftAttribute, provided by the TonNftAttributePatterns extension
A variant ofmapthat fallback to returningorElse.