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