dispose method

Future<void> dispose()

Cancel the refresh/open/foreground listeners (called on Nexus dispose / re-init).

Implementation

Future<void> dispose() async {
  await _refreshSub?.cancel();
  await _openSub?.cancel();
  await _fgSub?.cancel();
}