GoogleDriveHandler class
Coordinates Google authentication and the Drive file picker.
Constructors
- GoogleDriveHandler()
-
factory
Properties
- account → GoogleSignInAccount?
-
The currently authenticated account, if one has signed in.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getFileFromGoogleDrive(
{required BuildContext context}) → Future< File?> - Authenticates the user and opens the Google Drive file picker.
-
initialize(
{String? clientId, String? serverClientId, String? hostedDomain}) → Future< void> - Initializes Google Sign-In.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAPIKey(
{required String apiKey}) → void - Retained for source compatibility.
-
signOut(
) → Future< void> - Signs the current user out of Google Sign-In.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited