copyWith method

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

Implementation

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