sendVerifyEmail function

Future<bool> sendVerifyEmail (
  1. String email
)

send Email verification email

Implementation

Future<bool> sendVerifyEmail(String email) async {
  try {
    var response = await http.post(passwordResetApi,
        body: json.encode({
          AppConstants.EMAIL: email,
          AppConstants.REQUEST_TYPE: "VERIFY_EMAIL"
        }));
    if (response.statusCode == 200) {
      return true;
    }
    return false;
  } catch (err) {
    throw err;
  }
}