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