AtOnboardingResult.error constructor

AtOnboardingResult.error({
  1. String? message,
  2. String? errorCode,
})

Create instance with error status

message The message returned when onboard failed

errorCode The error code returned when onboard failed

Implementation

factory AtOnboardingResult.error({
  String? message,
  String? errorCode,
}) {
  return AtOnboardingResult._(
    status: AtOnboardingResultStatus.error,
    message: message,
    errorCode: errorCode,
  );
}