PaymentButtonStyle class
Partial button appearance, resolved after semantic and family defaults.
Disabled colors, focus color, padding, sizing, state layers and motion stay
kit-owned. Hosts verify contrast for custom enabled color pairs in light and
dark. This type deliberately does not forward unrestricted ButtonStyle.
- Annotations
Constructors
- PaymentButtonStyle({Color? backgroundColor, Color? foregroundColor, Color? borderColor, BorderRadius? borderRadius, TextStyle? textStyle})
-
Creates optional overrides; null properties preserve preceding layers.
const
Properties
- backgroundColor → Color?
-
Enabled fill; secondary and quiet variants have no fill by default.
final
- borderColor → Color?
-
Enabled secondary outline; ignored by the other variants.
final
- borderRadius → BorderRadius?
-
Button corners; the keyboard focus ring follows the same radii.
final
- foregroundColor → Color?
-
Enabled label, icon and spinner color, also used for pressed/hover layers.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle?
-
Typography merged over the heading role, keeping unspecified fields.
final
Methods
-
merge(
PaymentButtonStyle? other) → PaymentButtonStyle -
Overlays non-null properties from
other, merging its typography. -
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.
override
Static Methods
-
lerp(
PaymentButtonStyle? a, PaymentButtonStyle? b, double t) → PaymentButtonStyle? - Interpolates partial appearance during Flutter theme transitions.