requestOtp method

Future<Result<Object, Exception>> requestOtp(
  1. String phoneNumber
)

Implementation

Future<Result<Object, Exception>> requestOtp(String phoneNumber) async {
  final result = await _flutterAuthApi.requestOtp(_appName, phoneNumber);

  if (result.isSuccess != true) {
    return Result.failure(Exception(result.error));
  }

  return Result.success(Object);
}