detach method

  1. @override
void detach(
  1. TextInputClient client
)
override

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) {
  // A client switch attaches the new client before the old one's connection
  // closes; only the current client's detach may tear down.
  if (_client != client) return;
  _release();
}