GoogleAuthSetup constructor

const GoogleAuthSetup({
  1. required String clientId,
  2. required String clientSecret,
  3. required String redirectUri,
  4. String? loginHint,
  5. dynamic onError(
    1. GoogleAuthFailure
    )?,
  6. dynamic onSuccess(
    1. GoogleTokens tokens
    )?,
  7. List<String> scopes = const ["https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/userinfo.email"],
  8. String appBarTitle = "Google Authorization",
  9. bool centerTitle = false,
  10. Widget loadingWidget = const Center(child: CircularProgressIndicator()),
  11. Widget successWidget = const Center(child: Text("Google Authorization Success")),
  12. Widget failureWidget = const Center(child: Text("Google Authrizarion Failed")),
})

Implementation

const GoogleAuthSetup({
  required this.clientId,
  required this.clientSecret,
  required this.redirectUri,
  this.loginHint,
  this.onError,
  this.onSuccess,
  this.scopes = const [
    "https://www.googleapis.com/auth/userinfo.profile",
    "https://www.googleapis.com/auth/userinfo.email",
  ],
  this.appBarTitle = "Google Authorization",
  this.centerTitle = false,
  this.loadingWidget = const Center(child: CircularProgressIndicator()),
  this.successWidget = const Center(
    child: Text("Google Authorization Success"),
  ),
  this.failureWidget = const Center(
    child: Text("Google Authrizarion Failed"),
  ),
});