GoogleAuthSetup class
Constructors
-
GoogleAuthSetup({required String clientId, required String clientSecret, required String redirectUri, String? loginHint, dynamic onError(GoogleAuthFailure)?, dynamic onSuccess(GoogleTokens tokens)?, List<String> scopes = const ["https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/userinfo.email"], String appBarTitle = "Google Authorization", bool centerTitle = false, Widget loadingWidget = const Center(child: CircularProgressIndicator()), Widget successWidget = const Center(child: Text("Google Authorization Success")), Widget failureWidget = const Center(child: Text("Google Authrizarion Failed"))})
-
const
Properties
-
appBarTitle
→ String
-
The Web view appBar Title
final
-
centerTitle
→ bool
-
Determine whether appbar title in center or not
final
-
clientId
→ String
-
The client id from google cloud console in web client
final
-
clientSecret
→ String
-
The client secret from google cloud console in web client
final
-
failureWidget
→ Widget
-
The widget that will displat if error occurred
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
loadingWidget
→ Widget
-
The widget that will display during loading
final
-
loginHint
→ String?
-
This attribute prefilling email field if application know user
final
-
onError
→ dynamic Function(GoogleAuthFailure)?
-
This callback executed if error if ocured during oauth process
final
-
onSuccess
→ dynamic Function(GoogleTokens tokens)?
-
This callabck executed after get access token and you can access Google Tokens (access token,id token)
final
-
redirectUri
→ String
-
The redirect url that you defined in google cloud console
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
scopes
→ List<String>
-
The user resources that you want access via access token
final
-
successWidget
→ Widget
-
The widget that will display after success
final
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited