registerAccount method
Future<void>
registerAccount(
- ClientAccountRegisterContext clientAccountRegisterContext, {
- required void onSuccess(),
- required void onError(
- SyneriseError error
This function registers a client account asynchronously using the provided context.
Args: clientAccountRegisterContext (ClientAccountRegisterContext): It is an object of type ClientAccountRegisterContext that contains the necessary information to register a client account.
Implementation
Future<void> registerAccount(
ClientAccountRegisterContext clientAccountRegisterContext,
{required void Function() onSuccess,
required void Function(SyneriseError error) onError}) async {
SyneriseResult<void> result =
await _methods.registerAccount(clientAccountRegisterContext);
result.onSuccess((result) {
onSuccess();
}).onError((error) {
onError(error);
});
}