isOTPLoading function

  1. @riverpod
bool isOTPLoading(
  1. Ref ref
)

OTP loading provider

Implementation

@riverpod
bool isOTPLoading(Ref ref) {
  final otpState = ref.watch(otpProvider);
  return otpState == const OTPState.requesting() ||
      otpState == const OTPState.verifying();
}