detach method
Requests the text input control to detach from the given input client.
This method is called when a text input client is detached. The input control should release any resources allocated for the client.
Implementation
@override
void detach(TextInputClient client) {
  super.detach(client);
  if (client == _client) {
    _configuration = null;
    _client = null;
  }
}