Error constructor

Error({
  1. ErrorCode? code,
  2. String? message,
  3. bool? shouldRetry,
})

Implementation

factory Error({
  ErrorCode? code,
  $core.String? message,
  $core.bool? shouldRetry,
}) {
  final $result = create();
  if (code != null) {
    $result.code = code;
  }
  if (message != null) {
    $result.message = message;
  }
  if (shouldRetry != null) {
    $result.shouldRetry = shouldRetry;
  }
  return $result;
}