LoginProvider class
Constructors
-
LoginProvider({Buttons? button, IconData? icon, required ProviderAuthCallback callback, List<
String> ? errorsToExcludeFromErrorMessage, String label = '', ProviderNeedsSignUpCallback? providerNeedsSignUpCallback, bool animated = true}) -
const
Properties
- animated → bool
-
Enable or disable the animation of the button.
final
-
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 -
errorsToExcludeFromErrorMessage
→ List<
String> ? -
Provide a list of errors to not display when a login has failed.
For example, if the login is cancelled and you don't want to show a error
message that the login is cancelled. If you provide the error message to this list
the error is not shown
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
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