dispose method

Future<void> dispose()

Cancel auth state listeners and release resources.

Implementation

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