signUp method
Sign Up.
ID: 80eee427
.
Implementation
Future<Result<AuthAuthorizationBase>> signUp({
required String phoneNumber,
required String phoneCodeHash,
required String firstName,
required String lastName,
}) async {
// Preparing the request.
final request = AuthSignUp(
phoneNumber: phoneNumber,
phoneCodeHash: phoneCodeHash,
firstName: firstName,
lastName: lastName,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<AuthAuthorizationBase>();
}