validateDisposableEmail method

Future<bool> validateDisposableEmail(
  1. String email
)

Validate whether email is a disposable/invalid email address.

Returns true if the email is valid (not disposable), false otherwise. Call this before sendShopifyEmailVerificationCode to gate the OTP send.

Implementation

Future<bool> validateDisposableEmail(String email) async {
  return await ShopifyService.validateDisposableEmail(email);
}