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;
}