copyWith method

SawMatrix copyWith({
  1. String? id,
  2. SawAlternative? alternative,
  3. List<SawRating>? ratings,
})

Implementation

SawMatrix copyWith({
  String? id,
  SawAlternative? alternative,
  List<SawRating>? ratings,
}) {
  return SawMatrix(
    id: id ?? this.id,
    alternative: alternative ?? this.alternative,
    ratings: ratings ?? this.ratings,
  );
}