KeyboardOnlyFocusIndicatorDirective class
KeyboardOnlyFocusIndicatorDirective is a decorator that hides the outline on an element when the element is focused with a mouse, and shows the outline when focused with a keyboard.
- Implementers
- Annotations
-
- @Directive(selector: "[keyboardOnlyFocusIndicator]", exportAs: 'keyboardOnlyFocusIndicator')
Constructors
- KeyboardOnlyFocusIndicatorDirective(HtmlElement _element, DomService _domService)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
focus(
[UIEvent? event]) → void -
Programmatically set focus on the underlying element, managing outline
visibility depending on the type of
event
. The intended use case follows this general pattern: -
hideOutline(
) → void -
keydown(
KeyboardEvent e) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onFocus(
Event event) → void -
onMouseInteraction(
) → void -
resetOutline(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited