ApplePayCartSummaryItem class
Object that can be used to explain the different charges on the Apple Pay sheet.
- Annotations
-
- @Freezed(unionKey: 'paymentType')
Constructors
- ApplePayCartSummaryItem.deferred({required String label, required String amount, required int deferredDate})
-
Use this type for a payment that occurs in the future, such as a pre-order. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem
constfactory
-
ApplePayCartSummaryItem.fromJson(Map<
String, dynamic> json) -
factory
- ApplePayCartSummaryItem.immediate({required String label, required String amount, bool? isPending})
-
Use this type for payments that will occur immediately.
constfactory
- ApplePayCartSummaryItem.recurring({required String label, required String amount, required ApplePayIntervalUnit intervalUnit, required int intervalCount, int? startDate, int? endDate})
-
Use this type for payments that occur more than once, such as a subscription. Only available on iOS 15 and up, otherwise falls back to ImmediateCartSummaryItem
constfactory
Properties
- amount → String
-
The monetary amount.
no setterinherited
-
copyWith
→ $ApplePayCartSummaryItemCopyWith<
ApplePayCartSummaryItem> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
Short localized description of the item.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult immediate(ImmediateCartSummaryItem value), required TResult deferred(DeferredSummaryItem value), required TResult recurring(RecurringCartSummaryItem value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult? immediate(ImmediateCartSummaryItem value)?, TResult? deferred(DeferredSummaryItem value)?, TResult? recurring(RecurringCartSummaryItem value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult immediate(ImmediateCartSummaryItem value)?, TResult deferred(DeferredSummaryItem value)?, TResult recurring(RecurringCartSummaryItem value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult immediate(String label, String amount, bool? isPending)?, TResult deferred(String label, String amount, int deferredDate)?, TResult recurring(String label, String amount, ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, int? endDate)?, 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 immediate(String label, String amount, bool? isPending), required TResult deferred(String label, String amount, int deferredDate), required TResult recurring(String label, String amount, ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, int? endDate)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult? immediate(String label, String amount, bool? isPending)?, TResult? deferred(String label, String amount, int deferredDate)?, TResult? recurring(String label, String amount, ApplePayIntervalUnit intervalUnit, int intervalCount, int? startDate, int? endDate)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited