EasyAuth class

The entry point of the EasyAuth SDK.

Constructors

EasyAuth()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Methods

currentUser<T extends EquatableUser>(BuildContext context) → T
Returns the current user from the AuthenticationRepository
deleteAccount<T extends EquatableUser>(BuildContext context) → void
Sends AuthDeleteAccount request to the EasyAuthBloc for the current user.
graduateUser<T extends EquatableUser>(BuildContext context) → void
Sends Graduation request to the EasyAuthBloc for the current user.
login<T extends EquatableUser>(BuildContext context, {required EasyAuthProvider provider}) → void
Sends Login request to the EasyAuthBloc for the current user.
of<T extends EquatableUser>(BuildContext context) → EasyAuthBloc<T>
Obtain a value from the nearest ancestor provider of type EasyAuthBloc.
register<T extends EquatableUser>(BuildContext context, {required T user, required String password}) → void
Sends Register request to the EasyAuthBloc for the current user.
signOut<T extends EquatableUser>(BuildContext context) → void
Sends SignOut request to the EasyAuthBloc for the current user.