focus method

  1. @override
void focus()
override

Item/component focuses itself

Implementation

@override
void focus() {
  if (_input == null) {
    /// input component is not there yet, defer the focus.
    _focusPending = true;
  } else {
    _input?.focus();
  }
}