logout method
Implementation
Future<void> logout() async {
if (!isLogin) {
return;
}
try {
await FirebaseAuth.instance.signOut();
isLogin = false;
notifyListeners();
} catch (errorCode) {
log('Logout error: ' + errorCode.toString());
}
}