GoogleService class
A service class responsible for handling Google Sign-In authentication.
This class integrates with both the google_sign_in
and firebase_auth
packages to allow users to sign in to the app using their Google account.
All methods are static, so there's no need to instantiate the class.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
generateDescriptionFromEntry(
DiaryEntry entry, String location) → Future< String> - Generates a diary description using the Gemini API from a DiaryEntry.
-
generateItinerariesFromEntries(
List< DiaryEntry> entries) → Future<List< Map< >String, dynamic> > - Generates 5 suggested itineraries based on a list of DiaryEntry objects.
-
loginWithGoogle(
) → Future< User?> - Signs in the user using Google Sign-In and Firebase Authentication.