LoginProvider class

Constructors

LoginProvider({Buttons? button, IconData? icon, ProviderAuthCallback? callback, String label = '', ProviderNeedsSignUpCallback? providerNeedsSignUpCallback})
Enable or disable the animation of the button.
const

Properties

button → Buttons?
Used for custom sign-in buttons.
final
callback ProviderAuthCallback?
A Function called when the provider button is pressed. It must return null on success, or a String describing the error on failure.
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
The icon shown on the provider button
final
label String
The label shown under the provider
final
providerNeedsSignUpCallback ProviderNeedsSignUpCallback?
Optional. Requires that the additionalSignUpFields argument is passed to FlutterLogin. When given, this callback must return a Future<bool>. If it evaluates to true the card containing the additional signup fields is shown, right after the evaluation of callback. If not given the default behaviour is not to show the signup card.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited