ModalToken class

Per-component design tokens for ModalConfig.

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(modal: ModalToken(...))), or per instance via ModalConfig.token.

Annotations

Constructors

ModalToken({Color? colorBgMask, Color? colorBgElevated, EdgeInsets? padding, double? borderRadius, double? titleFontSize, double? contentFontSize})
Creates a ModalToken.
const

Properties

borderRadius → double?
Modal dialog corner radius (borderRadius).
final
colorBgElevated → Color?
Modal dialog background color (colorBgElevated).
final
colorBgMask → Color?
Mask backdrop color (colorBgMask).
final
contentFontSize → double?
Content font size (contentFontSize).
final
hashCode → int
The hash code for this object.
no setterinherited
padding → EdgeInsets?
Modal dialog padding (padding).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
titleFontSize → double?
Title font size (titleFontSize).
final

Methods

merge(ModalToken other) → ModalToken
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