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
type
of the error object passed into theerror_callback
function. - 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.id
global. - GsiButtonConfiguration
-
The configuration object for the
renderButton
method. - GsiButtonData
-
The object passed as an optional parameter to
click_listener
function. - IdConfiguration
-
The configuration object for the
initialize
method. - PromptMomentNotification
-
A moment (status) notification from the
prompt
method. - RevocationResponse
-
The parameter passed to the
callback
of therevoke
function.
Extensions
- CredentialExtension on Credential
- The fields that are contained in the Credential object.
Properties
- id → GoogleAccountsId
-
Binding to the
google.accounts.id
JS global.no setter
Typedefs
- CallbackFn = void Function(CredentialResponse credentialResponse)
-
The type of the
callback
used to create an IdConfiguration. - GsiButtonClickListenerFn = void Function(GsiButtonData? gsiButtonData)
-
The type of the GsiButtonConfiguration
click_listener
function. - NativeCallbackFn = void Function(Credential credential)
-
The type of the
native_callback
used to create an IdConfiguration. - PromptMomentListenerFn = void Function(PromptMomentNotification moment)
-
The type of the function that can be passed to
prompt
to listen for PromptMomentNotifications. - RevocationResponseHandlerFn = void Function(RevocationResponse revocationResponse)
-
The type of the
callback
function passed torevoke
, to be notified of the success of the revocation operation.