id library
Enums
- ButtonLogoAlignment
- The type of button to be rendered.
- ButtonShape
- The button shape.
- ButtonSize
- The theme of the button to be rendered.
- ButtonText
- The button text.
- ButtonTheme
- The theme of the button to be rendered.
- ButtonType
- The type of button to be rendered.
- CredentialSelectBy
- Represents how a credential was selected.
- GoogleIdentityServicesErrorType
-
The
typeof the error object passed into theerror_callbackfunction. - MomentDismissedReason
- The detailed reason for the dismissal.
- MomentNotDisplayedReason
- The detailed reason why the OneTap UI isn't displayed.
- MomentSkippedReason
- The detailed reason for the skipped moment.
- MomentType
- The moment type.
- OneTapContext
- Changes the text of the title and messages in the One Tap prompt.
- UxMode
- Use this enum to set the UX flow used by the Sign In With Google button. The default value is popup.
Extension Types
- Credential
- The object passed to the NativeCallbackFn. Represents a PasswordCredential that was returned by the Browser.
- CredentialResponse
- The object passed as the parameter of your CallbackFn.
- GoogleAccountsId
-
The Dart definition of the
google.accounts.idglobal. - GsiButtonConfiguration
-
The configuration object for the
renderButtonmethod. - GsiButtonData
-
The object passed as an optional parameter to
click_listenerfunction. - IdConfiguration
-
The configuration object for the
initializemethod. - PromptMomentNotification
-
A moment (status) notification from the
promptmethod. - RevocationResponse
-
The parameter passed to the
callbackof therevokefunction.
Extensions
- CredentialExtension on Credential
- The fields that are contained in the Credential object.
Properties
- id → GoogleAccountsId
-
Binding to the
google.accounts.idJS global.no setter
Typedefs
- CallbackFn = void Function(CredentialResponse credentialResponse)
-
The type of the
callbackused to create an IdConfiguration. - GsiButtonClickListenerFn = void Function(GsiButtonData? gsiButtonData)
-
The type of the GsiButtonConfiguration
click_listenerfunction. - NativeCallbackFn = void Function(Credential credential)
-
The type of the
native_callbackused to create an IdConfiguration. - PromptMomentListenerFn = void Function(PromptMomentNotification moment)
-
The type of the function that can be passed to
promptto listen for PromptMomentNotifications. - RevocationResponseHandlerFn = void Function(RevocationResponse revocationResponse)
-
The type of the
callbackfunction passed torevoke, to be notified of the success of the revocation operation.