NoonPaymentStyle class
Customization options for the Noon Payment SDK UI.
Follows the "Rule of Truth" naming convention:
- Unified names (e.g.
backgroundColor) are used forBothplatforms. - iOS-only properties are prefixed with
ios(e.g.iosPaymentOptionFont). - Android-only properties are prefixed with
android(e.g.androidSpecific).
All color values should be provided as hex strings (e.g., "#FF5733").
Constructors
- NoonPaymentStyle({Uint8List? logoBytes, String? backgroundColor, String? paymentOptionHeadingText, String? paymentOptionHeadingForeground, String? iosPaymentOptionHeadingFont, double? iosPaymentOptionHeadingFontSize, String? paymentOptionText, String? paymentOptionForeground, String? paymentOptionBackground, String? iosPaymentOptionBorderColor, String? iosPaymentOptionFont, double? iosPaymentOptionFontSize, String? payableAreaBackground, String? payableAmountText, String? payableAmountForeground, String? iosPayableAmountFont, double? iosPayableAmountFontSize, String? addNewCardText, String? addNewCardForeground, String? iosAddNewCardFont, double? iosAddNewCardFontSize, String? payNowButtonBackground, String? payNowButtonForeground, String? payNowButtonText, String? iosPayNowButtonFont, double? iosPayNowButtonFontSize, double? iosPayNowButtonRadius, String? iosYesButtonForeground, String? iosYesButtonBackground, String? iosYesButtonFont, double? iosYesButtonFontSize, double? iosYesButtonRadius, String? iosYesButtonBorderColor, String? iosNoButtonForeground, String? iosNoButtonBackground, String? iosNoButtonFont, double? iosNoButtonFontSize, double? iosNoButtonRadius, String? iosNoButtonBorderColor})
-
const
Properties
- addNewCardForeground → String?
-
Cross-PlatformText color for the "Add New Card" label.final - addNewCardText → String?
-
Cross-PlatformLabel for the "Add New Card" button.final - backgroundColor → String?
-
Cross-PlatformBackground color of the entire payment sheet.final -
Cross-PlatformText color for the footer text.final -
Cross-PlatformFooter text at the bottom of the sheet.final - hashCode → int
-
The hash code for this object.
no setterinherited
- iosAddNewCardFont → String?
-
iOS OnlyCustom font for the "Add New Card" label (optional).final - iosAddNewCardFontSize → double?
-
iOS OnlyFont size for the "Add New Card" label (optional).final -
iOS OnlyCustom font for the footer text (optional).final -
iOS OnlyFont size for the footer text (optional).final - iosNoButtonBackground → String?
-
iOS OnlyBackground color for the "No" button.final - iosNoButtonBorderColor → String?
-
iOS OnlyBorder color for the "No" button.final - iosNoButtonFont → String?
-
iOS OnlyCustom font for the "No" button (optional).final - iosNoButtonFontSize → double?
-
iOS OnlyFont size for the "No" button (optional).final - iosNoButtonForeground → String?
-
iOS OnlyText color for the "No" button.final - iosNoButtonRadius → double?
-
iOS OnlyCorner radius for the "No" button.final - iosPayableAmountFont → String?
-
iOS OnlyCustom font for the amount display (optional).final - iosPayableAmountFontSize → double?
-
iOS OnlyFont size for the amount display (optional).final - iosPaymentOptionBorderColor → String?
-
iOS OnlyBorder color for payment method tabs.final - iosPaymentOptionFont → String?
-
iOS OnlyCustom font for payment method tabs (optional).final - iosPaymentOptionFontSize → double?
-
iOS OnlyFont size for payment method tabs (optional).final - iosPaymentOptionHeadingFont → String?
-
iOS OnlyCustom font for the payment options heading (optional).final - iosPaymentOptionHeadingFontSize → double?
-
iOS OnlyFont size for the payment options heading (optional).final - iosPayNowButtonFont → String?
-
iOS OnlyCustom font for the "Pay Now" button (optional).final - iosPayNowButtonFontSize → double?
-
iOS OnlyFont size for the "Pay Now" button (optional).final - iosPayNowButtonRadius → double?
-
iOS OnlyCorner radius for the "Pay Now" button.final - iosYesButtonBackground → String?
-
iOS OnlyBackground color for the "Yes" button.final - iosYesButtonBorderColor → String?
-
iOS OnlyBorder color for the "Yes" button.final - iosYesButtonFont → String?
-
iOS OnlyCustom font for the "Yes" button (optional).final - iosYesButtonFontSize → double?
-
iOS OnlyFont size for the "Yes" button (optional).final - iosYesButtonForeground → String?
-
iOS OnlyText color for the "Yes" button.final - iosYesButtonRadius → double?
-
iOS OnlyCorner radius for the "Yes" button.final - logoBytes → Uint8List?
-
Cross-PlatformRaw bytes for the company logo. Load via(await rootBundle.load('assets/logo.png')).buffer.asUint8List()final - payableAmountForeground → String?
-
Cross-PlatformText color for the amount display.final - payableAmountText → String?
-
Cross-PlatformLabel for the payable amount (e.g. "Total").final - payableAreaBackground → String?
-
Cross-PlatformBackground color for the amount display area.final - paymentOptionBackground → String?
-
Cross-PlatformBackground color for payment method tabs.final - paymentOptionForeground → String?
-
Cross-PlatformText color for payment method tabs.final - paymentOptionHeadingForeground → String?
-
Cross-PlatformText color for the payment methods heading.final - paymentOptionHeadingText → String?
-
Cross-PlatformTitle text for the payment methods section.final - paymentOptionText → String?
-
Cross-PlatformLabel for individual payment method tabs.final - payNowButtonBackground → String?
-
Cross-PlatformBackground color for the "Pay Now" button.final - payNowButtonForeground → String?
-
Cross-PlatformText color for the "Pay Now" button.final - payNowButtonText → String?
-
Cross-PlatformLabel for the "Pay Now" button.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts the style to a map for MethodChannel communication.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited