cancelCode method

Future<Result<Boolean>> cancelCode({
  1. required String phoneNumber,
  2. required String phoneCodeHash,
})

Cancel Code.

ID: 1f040578.

Implementation

Future<Result<Boolean>> cancelCode({
  required String phoneNumber,
  required String phoneCodeHash,
}) async {
  // Preparing the request.
  final request = AuthCancelCode(
    phoneNumber: phoneNumber,
    phoneCodeHash: phoneCodeHash,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<Boolean>();
}