Error constructor

Error({
  1. ErrorType? error,
  2. String? message,
})

Implementation

factory Error({
  ErrorType? error,
  $core.String? message,
}) {
  final _result = create();
  if (error != null) {
    _result.error = error;
  }
  if (message != null) {
    _result.message = message;
  }
  return _result;
}