PlatformPaySheetUpdateParams class
Parameters related to updating the platform pay sheet
At this moment only Apple pay is supported
- Annotations
-
- @freezed
Constructors
-
PlatformPaySheetUpdateParams.applePay({required List<
ApplePayCartSummaryItem> summaryItems, required List<ApplePayShippingMethod> shippingMethods, List<ApplePaySheetError> ? errors}) -
constfactory
-
PlatformPaySheetUpdateParams.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $PlatformPaySheetUpdateParamsCopyWith<
PlatformPaySheetUpdateParams> -
no setterinherited
-
errors
→ List<
ApplePaySheetError> ? -
In case user input is wrong use this to display the errors in the apple pay sheet.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shippingMethods
→ List<
ApplePayShippingMethod> -
list of updated shipping methods
no setterinherited
-
summaryItems
→ List<
ApplePayCartSummaryItem> -
list of updated summary items
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult applePay(_PlatformPaySheetUpdateParams value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult? applePay(_PlatformPaySheetUpdateParams value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult applePay(_PlatformPaySheetUpdateParams value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult applePay(List< ApplePayCartSummaryItem> summaryItems, List<ApplePayShippingMethod> shippingMethods, List<ApplePaySheetError> ? errors)?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult applePay(List< ApplePayCartSummaryItem> summaryItems, List<ApplePayShippingMethod> shippingMethods, List<ApplePaySheetError> ? errors)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult? applePay(List< ApplePayCartSummaryItem> summaryItems, List<ApplePayShippingMethod> shippingMethods, List<ApplePaySheetError> ? errors)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited