ShopifyUserPatterns extension
Adds pattern-matching-related methods to ShopifyUser.
- on
Methods
-
map<
TResult extends Object?> (TResult $default(_ShopifyUser value)) → TResult -
Available on ShopifyUser, provided by the ShopifyUserPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ShopifyUser value)?) → TResult? -
Available on ShopifyUser, provided by the ShopifyUserPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_ShopifyUser value)?, {required TResult orElse()}) → TResult -
Available on ShopifyUser, provided by the ShopifyUserPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(Addresses? address, String? createdAt, String? displayName, String? email, String? firstName, String? id, String? lastName, String? phone, List< String> ? tags, Address? defaultAddress)?, {required TResult orElse()}) → TResult -
Available on ShopifyUser, provided by the ShopifyUserPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(Addresses? address, String? createdAt, String? displayName, String? email, String? firstName, String? id, String? lastName, String? phone, List< String> ? tags, Address? defaultAddress)) → TResult -
Available on ShopifyUser, provided by the ShopifyUserPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(Addresses? address, String? createdAt, String? displayName, String? email, String? firstName, String? id, String? lastName, String? phone, List< String> ? tags, Address? defaultAddress)?) → TResult? -
Available on ShopifyUser, provided by the ShopifyUserPatterns extension
A variant ofwhenthat fallback to returningnull