dispose method
Dispose all resources. The manager must not be used after this.
Implementation
Future<void> dispose() async {
_logger.info('NetworkManager: disposing');
await _connectivitySub?.cancel();
await _syncStateSub?.cancel();
await _syncEngine.dispose();
await _queue.dispose();
await _monitor.dispose();
await _stateController.close();
}