Focus constructor

const Focus({
  1. Key? key,
  2. FocusNode? focusNode,
  3. dynamic onKeyEvent(
    1. KeyEvent
    )?,
  4. required Widget child,
})

Creates a Focus widget with an optional focusNode and onKeyEvent.

Implementation

const Focus({
  super.key,
  this.focusNode,
  this.onKeyEvent,
  required this.child,
});