updateConfig method

  1. @override
void updateConfig(
  1. TextInputConfiguration configuration
)
override

Informs the text input control about input configuration changes.

This method is called when the configuration of the attached input client has changed.

Implementation

@override
void updateConfig(TextInputConfiguration configuration) {
  _configuration = configuration;
  // A field that swaps its keyboard type while focused — a "use a custom
  // pad" toggle, a "this is a phone number" switch — has to move the
  // keyboard with it, in both directions and between variants.
  if (_client != null && _shown && asking.value != _asked) {
    asking.value = _asked;
  }
}