ViamButtonRole enum

The role of the button.

Inheritance
Available extensions

Values

primary → const ViamButtonRole

Standard button. Light gray background, dark gray foreground (inverse when in dark mode)

inverse → const ViamButtonRole

Inverse of the primary button, Dark gray background, light gray foreground (inverse when in dark mode)

success → const ViamButtonRole

A button to indicate a successful operation, will result in a green color scheme

warning → const ViamButtonRole

A button to indicate a warning state, will result in an amber color scheme

danger → const ViamButtonRole

A button to indicate a dangerous operation, will result in an red color scheme

Properties

backgroundColor Color
The background color of the button, based on role. Takes dark mode into consideration.
no setter
foregroundColor Color
The foreground color of the button, based on role. Takes dark mode into consideration.
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
materialColor MaterialColor
The material color of the button, based on role.
no setter
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<ViamButtonRole>
A constant List of the values in this enum, in order of their declaration.