ChromeIdentity class

Properties

hashCode → int
The hash code for this object.
no setterinherited
isAvailable → bool
no setter
onSignInChanged → EventStream<OnSignInChangedEvent>
Fired when signin state changes for an account on the user's profile.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearAllCachedAuthTokens() → Future<void>
Resets the state of the Identity API:
getAccounts() → Future<List<AccountInfo>>
Retrieves a list of AccountInfo objects describing the accounts present on the profile.
getAuthToken(TokenDetails? details) → Future<GetAuthTokenResult>
Gets an OAuth2 access token using the client ID and scopes specified in the oauth2 section of manifest.json.
getProfileUserInfo(ProfileDetails? details) → Future<ProfileUserInfo>
Retrieves email address and obfuscated gaia id of the user signed into a profile.
getRedirectURL(String? path) → String
Generates a redirect URL to be used in |launchWebAuthFlow|.
launchWebAuthFlow(WebAuthFlowDetails details) → Future<String?>
Starts an auth flow at the specified URL.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeCachedAuthToken(InvalidTokenDetails details) → Future<void>
Removes an OAuth2 access token from the Identity API's token cache.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited