AlertTheme class

Theme configuration for Alert components.

Provides visual styling properties for alert components including padding, background color, and border color. These properties can be overridden at the widget level or applied globally via ComponentTheme.

The theme integrates with the overall design system by using appropriate color schemes and scaling factors from ThemeData.

Constructors

AlertTheme.new({EdgeInsetsGeometry? padding, Color? backgroundColor, Color? borderColor})
Creates an AlertTheme.
const

Properties

backgroundColor Color?
The background color of the alert container.
final
borderColor Color?
The border color of the alert outline.
final
hashCode int
The hash code for this object.
no setteroverride
padding EdgeInsetsGeometry?
The internal padding around the alert content.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({ValueGetter<EdgeInsetsGeometry?>? padding, ValueGetter<Color?>? backgroundColor, ValueGetter<Color?>? borderColor}) AlertTheme
Creates a copy of this theme with the given values replaced.
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