signInWithGoogle method

Future<void> signInWithGoogle(
  1. BuildContext context
)

Implementation

Future<void> signInWithGoogle(BuildContext context) async {
  if (kIsWeb) {
    await _signInWithGoogleWeb(context);
  } else if (Platform.isAndroid || Platform.isIOS) {
    await _signInWithGoogleMobile(context);
  } else if (Platform.isWindows || Platform.isMacOS || Platform.isLinux) {
    await _signInWithGoogleDesktop(context);
  }
}