signIn method
Start the Google Sign-In flow.
Implementation
Future<void> signIn() async {
dev.log('Starting Google Sign-In for Gemini', name: 'GoogleAuth');
final account = await _signIn.signIn();
if (account == null) {
throw Exception('Google Sign-In was cancelled.');
}
dev.log('Signed in as ${account.email}', name: 'GoogleAuth');
}