NodeFlowKeyboardHandler<T> constructor

const NodeFlowKeyboardHandler<T>({
  1. Key? key,
  2. required NodeFlowController<T> controller,
  3. required Widget child,
  4. bool autofocus = true,
  5. FocusNode? focusNode,
})

Creates a keyboard handler for NodeFlow.

Parameters:

  • controller: The NodeFlow controller containing the shortcuts and actions
  • child: The widget to wrap with keyboard handling
  • autofocus: Whether to automatically request focus (default: true)
  • focusNode: Optional custom focus node; if null, one will be created

Implementation

const NodeFlowKeyboardHandler({
  super.key,
  required this.controller,
  required this.child,
  this.autofocus = true,
  this.focusNode,
});