login method
Implementation
Future<bool> login(String email, String password) async {
_isLoading = true;
_error = null;
notifyListeners();
try {
await _authService.login(email, password);
_isLoading = false;
notifyListeners();
return true;
} catch (e) {
_error = e.toString();
_isLoading = false;
notifyListeners();
return false;
}
}