AlertThemeData class

Defines the visual properties of Alert.

Descendant widgets obtain the current AlertThemeData object using AlertTheme.of(context). Instances of AlertThemeData can be customized with AlertThemeData.copyWith or AlertThemeData.merge.

Inheritance
Mixed in types
Implementers
Annotations

Constructors

AlertThemeData({required Curve curve, required Duration duration, required AlertStyle style, AlertStyleByVariant variantStyle = const {}, AlertStyleByVariant dangerStyle = const {}, AlertStyleByVariant warningStyle = const {}, AlertStyleByVariant successStyle = const {}, AlertStyleByVariant infoStyle = const {}})
Creates a theme data that can be used for AlertTheme.
const
AlertThemeData.defaults(BuildContext context)
A AlertThemeData with default values.
factory
AlertThemeData.from([AlertThemeData? other])
Creates a AlertThemeData from another one that probably null.

Properties

curve Curve
The curve to apply when animating the parameters of alert widget.
final
dangerStyle AlertStyleByVariant
The AlertStyle to be applied to the alert widget
final
duration Duration
The duration over which to animate the parameters of alert widget.
final
hashCode int
The hash code for this object.
no setteroverride
infoStyle AlertStyleByVariant
The AlertStyle to be applied to the alert widget
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style AlertStyle
The AlertStyle to be applied to the alert widget
final
successStyle AlertStyleByVariant
The AlertStyle to be applied to the alert widget
final
type Object
The extension's type.
no setterinherited
variantStyle AlertStyleByVariant
The AlertStyle to be applied to the alert widget
final
warningStyle AlertStyleByVariant
The AlertStyle to be applied to the alert widget
final

Methods

copyWith({Curve? curve, Duration? duration, AlertStyle? style, AlertStyleByVariant? variantStyle, AlertStyleByVariant? dangerStyle, AlertStyleByVariant? warningStyle, AlertStyleByVariant? successStyle, AlertStyleByVariant? infoStyle}) AlertThemeData
Creates a copy of this AlertThemeData but with the given fields replaced with the new values.
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
lerp(covariant ThemeExtension<AlertThemeData>? other, double t) AlertThemeData
Linearly interpolate with another ThemeExtension object.
override
merge(AlertThemeData? other) AlertThemeData
Creates a copy of this AlertThemeData but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toMap() Map<String, dynamic>
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

fallback → const AlertThemeData
Create a AlertThemeData with some reasonable default values.