copyWith method

ScoreWeights copyWith({
  1. int? critical,
  2. int? error,
  3. int? warning,
  4. int? info,
})

Public method or function.

Implementation

ScoreWeights copyWith({int? critical, int? error, int? warning, int? info}) {
  return ScoreWeights(
    critical: critical ?? this.critical,
    error: error ?? this.error,
    warning: warning ?? this.warning,
    info: info ?? this.info,
  );
}