ButtonType enum

Defines the default behavior of a button.

Inheritance
Available extensions

Values

submit → const ButtonType

The button submits the form data to the server. This is the default if the attribute is not specified for buttons associated with a <form>, or if the attribute is an empty or invalid value.

const ButtonType('submit')
reset → const ButtonType

The button resets all the controls to their initial values, like <input type="reset">. (This behavior tends to annoy users.)

const ButtonType('reset')
button → const ButtonType

The button has no default behavior, and does nothing when pressed by default. It can have client-side scripts listen to the element's events, which are triggered when the events occur.

const ButtonType('button')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
final

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