SupaSocialsAuth constructor

const SupaSocialsAuth({
  1. Key? key,
  2. NativeGoogleAuthConfig? nativeGoogleAuthConfig,
  3. bool enableNativeAppleAuth = true,
  4. required List<OAuthProvider> socialProviders,
  5. bool colored = true,
  6. String? redirectUrl,
  7. required void onSuccess(
    1. Session session
    ),
  8. void onError(
    1. Object error
    )?,
  9. SocialButtonVariant socialButtonVariant = SocialButtonVariant.iconAndText,
  10. bool showSuccessSnackBar = true,
  11. Map<OAuthProvider, String>? scopes,
  12. Map<OAuthProvider, Map<String, String>>? queryParams,
  13. SupaSocialsAuthLocalization localization = const SupaSocialsAuthLocalization(),
})

Implementation

const SupaSocialsAuth({
  Key? key,
  this.nativeGoogleAuthConfig,
  this.enableNativeAppleAuth = true,
  required this.socialProviders,
  this.colored = true,
  this.redirectUrl,
  required this.onSuccess,
  this.onError,
  this.socialButtonVariant = SocialButtonVariant.iconAndText,
  this.showSuccessSnackBar = true,
  this.scopes,
  this.queryParams,
  this.localization = const SupaSocialsAuthLocalization(),
}) : super(key: key);