ButtonVariant enum Null safety Widgets

This enum specifies the theme that the button should use. The default theme is ButtonVariant.blue.

Options

ButtonVariant.blue

Motor Button Preview

ButtonVariant.black

Motor Button Preview

ButtonVariant.white

Motor Button Preview

ButtonVariant.blackOutline

Motor Button Preview

ButtonVariant.whiteOutline

Motor Button Preview
Inheritance

Constructors

ButtonVariant()
const

Values

blue → const ButtonVariant

Primary blue button

  • Transparent Border
  • White Text
  • Blue Background
Motor Button Preview
ButtonVariant()
black → const ButtonVariant

Tertiary black button

  • Transparent Border
  • White Text
  • Black Background
Motor Button Preview
ButtonVariant()
white → const ButtonVariant

Tertiary white button

  • Transparent Border
  • Black Text
  • White Background
Motor Button Preview
ButtonVariant()
blackOutline → const ButtonVariant

Secondary black outline button

  • Black Border
  • Black Text
  • Transparent Background
Motor Button Preview
ButtonVariant()
whiteOutline → const ButtonVariant

Secondary white outline button

  • White Border
  • White Text
  • Transparent Background
Motor Button Preview
ButtonVariant()

Properties

hashCode int
The hash code for this object.
read-only, inherited
index int
A numeric identifier for the enumerated value.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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<ButtonVariant>
A constant List of the values in this enum, in order of their declaration.
[blue, black, white, blackOutline, whiteOutline]