PortalGDriveConfig class

Google Drive configuration

Constructors

PortalGDriveConfig({required String clientId, required PortalGDriveBackupOption backupOption, String? folderName, bool? signOutAfterUse, bool? useNewExperimentalGoogleAuthApi})

Properties

backupOption PortalGDriveBackupOption
Backup destination strategy. Defaults are applied by the public Dart API.
getter/setter pair
clientId String
OAuth client ID for Google Sign-In / Google Identity Services.
getter/setter pair
folderName String?
Folder name used when backupOption is PortalGDriveBackupOption.customFolder. Ignored for the appDataFolder and appDataFolderWithFallback options (the native SDKs do not expose the fallback folder name as a configurable knob). Defaults to _PORTAL_MPC_DO_NOT_DELETE_ when null.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signOutAfterUse bool?
Android only: sign the user out of Google after each backup/recover operation. iOS ignores this flag.
getter/setter pair
useNewExperimentalGoogleAuthApi bool?
Android only: opt into the new Credential Manager-based (NewGDriveAuth) authentication flow. When false (default), the legacy GoogleSignIn flow is used. iOS ignores this flag.
getter/setter pair

Methods

encode() Object
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

decode(Object result) PortalGDriveConfig