copyWith method
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,
);
}