focus method

void focus()

Focus on the input element.

Implementation

void focus() {
  if (input != null) {
    input?.focus();
  }
}