copyWith method

WarningCollection copyWith({
  1. List<String>? warnings,
})

Implementation

WarningCollection copyWith({List<String>? warnings}) {
  return WarningCollection(
    warnings: warnings ?? this.warnings,
  );
}