didChangeInputControl method
- TextInputControl? oldControl,
- TextInputControl? newControl
override
The framework calls this method to notify that the text input control has been changed.
The TextInputClient may switch to the new text input control by hiding the old and showing the new input control.
See also:
- TextInputControl.hide, a method to hide the old input control.
- TextInputControl.show, a method to show the new input control.
Implementation
@override
void didChangeInputControl(TextInputControl? oldControl, TextInputControl? newControl) {
if (_hasFocus && _hasInputConnection) {
oldControl?.hide();
newControl?.show();
}
}