PlatformPaySheetUpdateParamsPatterns extension
Adds pattern-matching-related methods to PlatformPaySheetUpdateParams.
Methods
-
map<
TResult extends Object?> ({required TResult applePay(_PlatformPaySheetUpdateParams value)}) → TResult -
Available on PlatformPaySheetUpdateParams, provided by the PlatformPaySheetUpdateParamsPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> ({TResult? applePay(_PlatformPaySheetUpdateParams value)?}) → TResult? -
Available on PlatformPaySheetUpdateParams, provided by the PlatformPaySheetUpdateParamsPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> ({TResult applePay(_PlatformPaySheetUpdateParams value)?, required TResult orElse()}) → TResult -
Available on PlatformPaySheetUpdateParams, provided by the PlatformPaySheetUpdateParamsPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> ({TResult applePay(List< ApplePayCartSummaryItem> summaryItems, List<ApplePayShippingMethod> shippingMethods, List<ApplePaySheetError> ? errors)?, required TResult orElse()}) → TResult -
Available on PlatformPaySheetUpdateParams, provided by the PlatformPaySheetUpdateParamsPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> ({required TResult applePay(List< ApplePayCartSummaryItem> summaryItems, List<ApplePayShippingMethod> shippingMethods, List<ApplePaySheetError> ? errors)}) → TResult -
Available on PlatformPaySheetUpdateParams, provided by the PlatformPaySheetUpdateParamsPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> ({TResult? applePay(List< ApplePayCartSummaryItem> summaryItems, List<ApplePayShippingMethod> shippingMethods, List<ApplePaySheetError> ? errors)?}) → TResult? -
Available on PlatformPaySheetUpdateParams, provided by the PlatformPaySheetUpdateParamsPatterns extension
A variant ofwhenthat fallback to returningnull