unbind method
Implementation
Future<void> unbind() async {
if (!_bound) {
_logWarn("Not Bound, skipping unbind");
return;
}
_log("Unbinding");
await onUnbind?.call();
for (var s in _subscriptions) {
s.cancel();
}
_subscriptions.clear();
_bound = false;
if (allowAnonymous) {
if (allowAnonymous) {
await FirebaseAuth.instance.signInAnonymously();
}
} else {
_authState.add(this);
}
_logSuccess("Successfully Unbound");
}