detach static method

void detach()

Unsubscribes from auth state changes and forgets the recorded identity.

Registered holders and the identity resolver are kept: they belong to their owners, not to the subscription.

Implementation

static void detach() {
  _notifier?.removeListener(sync);
  _notifier = null;
  _current = null;
}