FocusMoveEvent class
An event to trigger moving focus to another item in a list.
Constructors
- FocusMoveEvent(FocusableItem focusItem, int offset, [Function? _preventDefaultDelegate])
- FocusMoveEvent.endKey(FocusableItem focusItem, [Function? _preventDefaultDelegate])
- FocusMoveEvent.fromKeyboardEvent(FocusableItem item, KeyboardEvent kbEvent)
-
Builds a
FocusMoveEvent
instance from a keyboard event, iff the keycode is a next, previous, home or end key (i.e. up/down/left/right/home/end).factory - FocusMoveEvent.homeKey(FocusableItem focusItem, [Function? _preventDefaultDelegate])
- FocusMoveEvent.none(FocusableItem focusItem, int offset, [Function? _preventDefaultDelegate])
- FocusMoveEvent.upDownKey(FocusableItem focusItem, int offset, [Function? _preventDefaultDelegate])
Properties
- end → bool
-
End key was pressed.
final
- focusItem → FocusableItem
-
The component which published this event.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- home → bool
-
Home key was pressed.
final
- offset → int
-
The position, relative the item, of where to set focus.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- upDown → bool
-
Up or down arrow key was pressed.
final
- valid → bool
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
preventDefault(
) → void -
Prevent Default action for occuring. When the
FocusMoveEvent
is created from a KeyboardEvent, this method delegates to thepreventDefault
method of theKeyboardEvent
, allowing consumers of this event to control the underlying DOM event. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited