AlertToken class

Per-component design tokens for Alert.

Every field is an override; a null one falls back to the value derived from the global theme. Supply one globally through ThemeData(components: ComponentsConfig(alert: AlertToken(...))), or per instance via Alert.token.

Annotations

Constructors

AlertToken({double? withDescriptionIconSize, EdgeInsets? withDescriptionPadding, EdgeInsets? padding, double? borderRadius, double? fontSize})
Creates an AlertToken.
const

Properties

borderRadius → double?
Corner radius (borderRadius).
final
fontSize → double?
Headline font size (fontSize).
final
hashCode → int
The hash code for this object.
no setterinherited
padding → EdgeInsets?
Default alert padding (padding).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
withDescriptionIconSize → double?
Icon size when description is present (withDescriptionIconSize).
final
withDescriptionPadding → EdgeInsets?
Padding when description is present (withDescriptionPadding).
final

Methods

merge(AlertToken other) → AlertToken
This one with other's fields laid over it, one field at a time.
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