AuthEmail class

Constructors

AuthEmail({required String appName, required String server, required String serverKey, bool isDebug = false})
Create a new AuthEmail instance.

Properties

appName String
The name of the application. Must be the same as the appName on your server.
final
hashCode int
The hash code for this object.
no setterinherited
isDebug bool
Allow print debug log.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server String
The URL point to the server side.
final
serverKey String
An unencrypted server key.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendOTP({required dynamic email, String subject = '', String body = '', int otpLength = 6}) Future<bool>
Send an OTP tp the email.
toString() String
A string representation of this object.
inherited
verifyOTP({required String email, required String otp}) bool
Verify the OTP that inputed by the user.

Operators

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

Static Methods

isValidEmail(String email) bool
This function will check if the provided email ID is valid or not.