dispose method

void dispose()

Disposes the Translator and releases all associated resources. Once called, future calls to this instance will result in errors.

Implementation

void dispose() {
  _translationsStreamController?.close();
  _translationsStreamController = null;
}