BannerVariant enum

Defines the available style variants for InfoBanner.

Inheritance
Available extensions

Values

info → const BannerVariant

Informational variant.

const BannerVariant(Icons.info_outline)
success → const BannerVariant

Success variant.

const BannerVariant(Icons.check_circle_outline)
warning → const BannerVariant

Warning variant.

const BannerVariant(Icons.warning_amber_outlined)
error → const BannerVariant

Error variant.

const BannerVariant(Icons.error_outline)

Properties

hashCode int
The hash code for this object.
no setterinherited
icon IconData
The icon associated with this variant.
final
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getColors(BuildContext context) → ({Color background, Color border, Color foreground})
Returns the color configuration for this variant based on the current context.
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

Constants

values → const List<BannerVariant>
A constant List of the values in this enum, in order of their declaration.