WidgetEvent class
Interactive events that some of the widgets can take on when receiving input from the user.
Some widgets track their current state in a Set<WidgetEvent>
.
- Implementers
Constructors
- WidgetEvent(String value)
-
Creates a new instance of
WidgetEvent
with the provided value.const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
isDisabled(
Set< WidgetEvent> events) → bool - Checker for whether events considers WidgetEvent.disabled to be active.
-
isDragged(
Set< WidgetEvent> events) → bool - Checker for whether events considers WidgetEvent.dragged to be active.
-
isErrored(
Set< WidgetEvent> events) → bool - Checker for whether events considers WidgetEvent.error to be active.
-
isFocused(
Set< WidgetEvent> events) → bool - Checker for whether events considers WidgetEvent.focused to be active.
-
isHovered(
Set< WidgetEvent> events) → bool - Checker for whether events considers WidgetEvent.hovered to be active.
-
isIndeterminate(
Set< WidgetEvent> events) → bool - Checker for whether events considers WidgetEvent.indeterminate to be active.
-
isLoading(
Set< WidgetEvent> events) → bool - Checker for whether events considers WidgetEvent.loading to be active.
-
isPressed(
Set< WidgetEvent> events) → bool - Checker for whether events considers WidgetEvent.pressed to be active.
-
isSelected(
Set< WidgetEvent> events) → bool - Checker for whether events considers WidgetEvent.selected to be active.
Constants
- disabled → const WidgetEvent
- The state when this widget is disabled and cannot be interacted with.
- dragged → const WidgetEvent
- The state when this widget is being dragged from one place to another by the user.
- error → const WidgetEvent
- The state when the widget has entered some form of invalid state.
- focused → const WidgetEvent
- The state when the user navigates with the keyboard to a given widget.
- hovered → const WidgetEvent
- The state when the user drags their mouse cursor over the given widget.
- indeterminate → const WidgetEvent
- The event when this item has been indeterminate.
- loading → const WidgetEvent
- The event when this item has entered of loading state.
- pressed → const WidgetEvent
- The state when the user is actively pressing down on the given widget.
- selected → const WidgetEvent
- The state when this item has been selected.