TokenDetails class

Constructors

TokenDetails({bool? interactive, AccountInfo? account, List<String>? scopes, bool? enableGranularPermissions})
TokenDetails.fromJS(TokenDetails _wrapped)

Properties

account AccountInfo?
The account ID whose token should be returned. If not specified, the function will use an account from the Chrome profile: the Sync account if there is one, or otherwise the first Google web account.
getter/setter pair
enableGranularPermissions bool?
The enableGranularPermissions flag allows extensions to opt-in early to the granular permissions consent screen, in which requested permissions are granted or denied individually.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
interactive bool?
Fetching a token may require the user to sign-in to Chrome, or approve the application's requested scopes. If the interactive flag is true, getAuthToken will prompt the user as necessary. When the flag is false or omitted, getAuthToken will return failure any time a prompt would be required.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<String>?
A list of OAuth2 scopes to request.
getter/setter pair
toJS → TokenDetails
no setter

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