Focus constructor

const Focus({
  1. Key? key,
  2. required Widget child,
  3. FocusNode? focusNode,
  4. bool autofocus = false,
  5. bool onKeyEvent(
    1. KeyEvent event
    )?,
  6. void onFocusChange(
    1. bool hasFocus
    )?,
})

Creates a new Focus widget.

Implementation

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