Button class

A button component.

Inheritance

Constructors

Button(Element element, {Map<String, String>? texts})
Construct a button object, wired to element. *

Properties

$element → ElementQuery
The dquery object of element. Equivalent to $(element).
finalinherited
element Element
The element which component wires to.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
texts Map<String, String>
The text setting this button.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setState(String state) Future
Set the button state, which will change the button text according to texts
toggle() → void
Toogle the active class on the button. If the button is of radio type,
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

DEFAULT_TEXTS Map<String, String>
The default text setting of button.
final

Static Methods

use() → void
Register to use Button component.
wire(Element element, [Button? create()?]) Button?
Retrieve the wired Button object from an element. If there is no wired