signOut method
Signs out the current user.
If successful, it also updates any authStateChanges, or idTokenChanges stream listeners.
Implementation
Future<void> signOut() async {
try {
_updateCurrentUserAndEvents(null, true);
} catch (exception) {
log('$exception', name: 'FirebaseAuth/signOut');
rethrow;
}
}