requestKeyboard method

  1. @override
void requestKeyboard()
override

Express interest in interacting with the keyboard.

If this control is already attached to the keyboard, this function will request that the keyboard become visible. Otherwise, this function will ask the focus system that it become focused. If successful in acquiring focus, the control will then attach to the keyboard and request that the keyboard become visible.

Implementation

@override
void requestKeyboard() {
  if (_hasFocus) {
    openConnectionIfNeeded();
  } else {
    widget.focusNode.requestFocus();
  }
}