copyWith method

SimpleErrorCollection copyWith({
  1. List<String>? errorMessages,
  2. Map<String, dynamic>? errors,
  3. int? httpStatusCode,
})

Implementation

SimpleErrorCollection copyWith(
    {List<String>? errorMessages,
    Map<String, dynamic>? errors,
    int? httpStatusCode}) {
  return SimpleErrorCollection(
    errorMessages: errorMessages ?? this.errorMessages,
    errors: errors ?? this.errors,
    httpStatusCode: httpStatusCode ?? this.httpStatusCode,
  );
}