MaterialButtonBase class
A base class from which to build buttons.
- Inheritance
-
- Object
- RootFocusable
- ButtonDirective
- MaterialButtonBase
- Implementers
Constructors
- MaterialButtonBase(HtmlElement element, String? role, {bool handleSpacePresses = true})
Properties
- ariaRole → String?
-
no setterinherited
- disabled ↔ bool
-
Is the component disabled.
getter/setter pairinherited
- disabledStr → String
-
String value to be passed to aria-disabled.
no setterinherited
- focused → bool
-
Whether button is focused right now.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hostTabIndex → String?
-
no setterinherited
- isMouseDown → bool
-
Whether the mouse is currently pressed on the button.
no setter
- raised ↔ bool
-
getter/setter pair
- role ↔ String?
-
Role of this component used for a11y.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tabbable ↔ bool
-
Is the component tabbable.
getter/setter pairinherited
- tabIndex → String?
-
no setterinherited
- tabindex ← String?
-
The tab index of the component.
no getterinherited
-
trigger
→ Stream<
UIEvent> -
Fired when the button is activated via click, tap, or key press.
no setterinherited
- visualFocus → bool
-
Whether button appears focused right now.
no setter
- zElevation → int
-
The elevation the material-shadow component should show.
no setter
Methods
-
dispose(
) → void -
Disposes this disposable and any resources it has open.
inherited
-
focus(
) → void -
Item/component focuses itself
inherited
-
focusedStateChanged(
) → void - Overridable method for subclasses that implement push change detection.
-
handleClick(
MouseEvent mouseEvent) → void -
Triggers if not disabled.
inherited
-
handleKeyPress(
KeyboardEvent keyboardEvent) → void -
Triggers on enter and space if not disabled.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onBlur(
UIEvent event) → void - Triggered on blur.
-
onFocus(
UIEvent event) → void - Triggered on focus.
-
onMouseDown(
dynamic _) → void - Triggered on a mouse press.
-
onMouseUp(
dynamic _) → void - Triggered on a mouse release.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateTabIndex(
) → void -
Use this method if you want to manually compute and cache the tab index.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- lowElevation → const int
- mediumElevation → const int