EmailOtpPlugin<T extends User> class

Inheritance

Constructors

EmailOtpPlugin.new()

Properties

dio ↔ Dio
latefinalinherited
fromJsonUser ↔ T Function(Map<String, dynamic> json)
latefinalinherited
getOptions Future<Options> Function({bool isTokenRequired})
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenStore TokenStore
latefinalinherited

Methods

forgetPassword({required String email}) Future<SuccessResponse>
Start the forget password flow using email OTP
initialize({required Dio dio, required Future<Options> getOptions({bool isTokenRequired}), required TokenStore tokenStore, required T fromJsonUser(Map<String, dynamic> json)}) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetPassword({required String email, required String otp, required String password}) Future<SuccessResponse>
Reset password using email OTP
sendVerificationOTP({required String email, required String type}) Future<SuccessResponse>
Send verification OTP to email address of the user
toString() String
A string representation of this object.
inherited
verifyEmail({required String email, required String otp}) Future<UserAndTokenResponse>
Verify email OTP

Operators

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