CustomerPatterns extension
Adds pattern-matching-related methods to Customer.
- on
Methods
-
map<
TResult extends Object?> (TResult $default(_Customer value)) → TResult -
Available on Customer, provided by the CustomerPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_Customer value)?) → TResult? -
Available on Customer, provided by the CustomerPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_Customer value)?, {required TResult orElse()}) → TResult -
Available on Customer, provided by the CustomerPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String? id, String? profileID, String? customerID, ReceivablesAccount? receivablesAccount, bool? active)?, {required TResult orElse()}) → TResult -
Available on Customer, provided by the CustomerPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> (TResult $default(String? id, String? profileID, String? customerID, ReceivablesAccount? receivablesAccount, bool? active)) → TResult -
Available on Customer, provided by the CustomerPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? id, String? profileID, String? customerID, ReceivablesAccount? receivablesAccount, bool? active)?) → TResult? -
Available on Customer, provided by the CustomerPatterns extension
A variant ofwhen
that fallback to returningnull