ApplePayButtonStyle enum
Enum representing different visual styles available for an Apple Pay button
Values map directly to Apple's PKPaymentButtonStyle
Values
- white → const ApplePayButtonStyle
-
A white button with black lettering.
See Apple's documentation for PKPaymentButtonStyle.white for more information
const ApplePayButtonStyle(stringValue: DataKeys.applePayButtonStyleWhite) - whiteOutline → const ApplePayButtonStyle
-
A white button with black lettering and a black outline
See Apple's documentation for PKPaymentButtonStyle.whiteOutline for more information
const ApplePayButtonStyle(stringValue: DataKeys.applePayButtonStyleWhiteOutline) - black → const ApplePayButtonStyle
-
A black button with white lettering
See Apple's documentation for PKPaymentButtonStyle.black for more information
const ApplePayButtonStyle(stringValue: DataKeys.applePayButtonStyleBlack) - automatic → const ApplePayButtonStyle
-
A button that automatically switches between light mode and dark mode
See Apple's documentation for PKPaymentButtonStyle.automatic for more information.
Important: Only available on iOS 14+. If used on unsupported versions of iOS it will map to ApplePayButtonStyle.black
const ApplePayButtonStyle(stringValue: DataKeys.applePayButtonStyleAutomatic)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringValue → String
-
The string value of this enum
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ApplePayButtonStyle> - A constant List of the values in this enum, in order of their declaration.