dispose method

Future<void> dispose()

Stops listening for new inputs.

Implementation

Future<void> dispose() async {
  await _subscription?.cancel();
  _subscription = null;
}