focus library
Classes
- FocusManager
- Manages focus state and hierarchy for a set of FocusNodes.
- FocusNode
- A focus node that stores properties and optionally delegates input/lifecycle to callbacks.
Enums
- EdgeBehavior
- Edge behavior for focus traversal within a scope.
Typedefs
- FocusCallback = void Function()
- Callback type for focus lifecycle events.
- KeyInputCallback = bool Function(int key, int modifiers, bool isPressed, bool isRepeat)
- Callback type for key input handling.
- ScrollIntoViewCallback = void Function(({double maxX, double maxY, double minX, double minY}) bounds, int artboardPtr)
- Callback type for scroll-into-view requests from Dart-mounted artboards. Called when focus changes to an element in an artboard whose root is mounted by Dart (has no native host). Parameters:
- TextInputCallback = bool Function(String text)
- Callback type for text input handling.