doGoogleSignIn method
Implementation
Future<void> doGoogleSignIn() async {
isPerformingGoogleSignIn(true);
try {
final GoogleSignInAccount? creds = await GoogleSignIn().signIn();
final GoogleSignInAuthentication auth = await creds!.authentication;
if (await AuthRepository().googleSignIn(creds, auth.accessToken!)) {
Get.offAllNamed(ERoutes.HOME);
}
} catch (e) {
isPerformingGoogleSignIn(false);
}
isPerformingGoogleSignIn(false);
}