copyWith method

RiskResult copyWith({
  1. String? category,
  2. String? title,
  3. String? description,
  4. String? suggestion,
  5. RiskLevel? level,
  6. String? file,
  7. int? line,
  8. DateTime? timestamp,
})

Implementation

RiskResult copyWith({
  String? category,
  String? title,
  String? description,
  String? suggestion,
  RiskLevel? level,
  String? file,
  int? line,
  DateTime? timestamp,
}) =>
    RiskResult(
      category: category ?? this.category,
      title: title ?? this.title,
      description: description ?? this.description,
      suggestion: suggestion ?? this.suggestion,
      level: level ?? this.level,
      file: file ?? this.file,
      line: line ?? this.line,
      timestamp: timestamp ?? this.timestamp,
    );