CheckoutButtonStyle class

Visual customization for OnramperCheckoutButton plus the ToS lines rendered above it.

The backgroundColor, foregroundColor, and borderRadius fields are forwarded to the native checkout button (via OnramperClient.getCheckoutRequirements). The tosStyle and tosLinkStyle fields style the Dart-side ToS text.

The native button's label text ("Buy") is fixed by the SDK and not currently overridable from Dart.

Constructors

CheckoutButtonStyle({Color? backgroundColor, Color? foregroundColor, double borderRadius = 12, TextStyle? tosStyle, TextStyle? tosLinkStyle})
const

Properties

backgroundColor → Color?
Fill color of the native checkout button. Null → SDK default (system blue).
final
borderRadius → double
Corner radius in logical points. Applied to the native button.
final
foregroundColor → Color?
Text color of the native checkout button. Null → SDK default (white).
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tosLinkStyle → TextStyle?
Style for the ToS lines that carry a link (item.url != null).
final
tosStyle → TextStyle?
Style for the ToS lines rendered above the native button.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNativeDto() → CheckoutButtonStyleDto?
Serializes the native-visible fields into a pigeon DTO so OnramperClient.getCheckoutRequirements can pass them across the bridge. Returns null when nothing overrides the SDK defaults.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited