BadgeTone enum

Semantic badge tones shared by style-aware components.

Widgets such as badges, inline labels, and frame decorators resolve these tones through the active PromptTheme to stay visually consistent. Prefer using a tone instead of hard-coding colors so downstream themes can adapt.

Inheritance
Available extensions

Values

neutral → const BadgeTone

Neutral/default emphasis (often rendered as gray).

info → const BadgeTone

Informational state that maps to the accent color.

success → const BadgeTone

Success/positive signal (typically green / checkbox-on color).

warning → const BadgeTone

Warning/semi-critical emphasis (usually highlight/yellow).

danger → const BadgeTone

Danger/critical emphasis (typically red).

Properties

hashCode int
The hash code for this object.
no setterinherited
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

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<BadgeTone>
A constant List of the values in this enum, in order of their declaration.