sendOtp method

Future<void> sendOtp(
  1. String phone
)

Implementation

Future<void> sendOtp(String phone) async {
  final data = await ref.read(authControllerProvider.notifier).sendOtp(phone);

  if (data == null) return;

  state = state.copyWith(
    phone: phone,
    step: FxPhoneAuthStep.enterOtp,
    otpData: data,
  );
}