dispose method

Future<void> dispose()

Closes the stream and unsubscribes from the channel. Call this when the manager is no longer needed.

Implementation

Future<void> dispose() async {
  await _cancelSubscription();
}