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>
.
Constructors
- WidgetEvent(String 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.
inherited
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 event when this widget is disabled and cannot be interacted with.
- dragged → const WidgetEvent
- The event when this widget is being dragged from one place to another by the user.
- error → const WidgetEvent
- The event when the widget has entered some form of invalid state.
- focused → const WidgetEvent
- The event when the user navigates with the keyboard to a given widget.
- hovered → const WidgetEvent
- The event 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 event when the user is actively pressing down on the given widget.
- selected → const WidgetEvent
- The event when this widget has been selected.