resendShopifyEmailOtp method

Future<void> resendShopifyEmailOtp()

Implementation

Future<void> resendShopifyEmailOtp() async {
  emit(state.copyWith(isLoading: true));
  try {
    await ShopifyService.shopifySendEmailVerificationCode(
        emailController.text);
    emit(state.copyWith(
        emailOtpSent: true, isNewUser: true, isLoading: false));
  } catch (err) {
    emit(state.copyWith(
        error: SingleUseData((err as Failure).message), isLoading: false));
  }
}