InputBehavior class
Input handling configuration for a palette.
Controls how keyboard events are captured and routed, and how clicks outside the palette are handled.
Constructors
-
InputBehavior({bool focus = true, Set<
LogicalKeyboardKey> ? keys, ClickOutsideBehavior clickOutside = ClickOutsideBehavior.dismiss, PaletteGroup? group}) -
const
- InputBehavior.focused()
-
Default behavior: takes focus, captures all keys, dismisses on click outside.
const
- InputBehavior.overlay()
-
Overlay behavior: no focus, no key capture, click passes through.
const
Properties
- clickOutside → ClickOutsideBehavior
-
Behavior when user clicks outside the palette.
final
- focus → bool
-
Whether this palette should take keyboard focus when shown.
final
- group → PaletteGroup?
-
Optional exclusive group membership.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
keys
→ Set<
LogicalKeyboardKey> ? -
Keys this palette wants to receive.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{bool? focus, Set< LogicalKeyboardKey> ? keys, ClickOutsideBehavior? clickOutside, PaletteGroup? group}) → InputBehavior - Creates a copy with the specified fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
- Menu behavior: takes focus, captures navigation keys, dismisses on click outside.