focus method

void focus()

focus on the input

Implementation

void focus() {
  if (_state == null) {
    throw StateError('Cannot focus before attaching to a widget');
  }

  _state!._focusNode.requestFocus();
}