resendOtp method

Future<void> resendOtp()

Implementation

Future<void> resendOtp() async {
  final data = await ref.read(authControllerProvider.notifier)
      .resendOtp(state.otpData!.verificationId);
  if (data != null) state = state.copyWith(otpData: data);
}