focus method

  1. @override
void focus()
override

Item/component focuses itself

Implementation

@override
void focus() {
  if (!_autoFocus) return;

  if (_focusable != null) {
    _focusable!.focus();
  } else {
    super.focus();
  }
}