copyWith method

NeomFrequency copyWith({
  1. String? id,
  2. String? name,
  3. String? description,
  4. double? frequency,
  5. ScaleDegree? scaleDegree,
  6. bool? isRoot,
  7. bool? isMain,
  8. bool? isFav,
})

Implementation

NeomFrequency copyWith({
  String? id,
  String? name,
  String? description,
  double? frequency,
  ScaleDegree? scaleDegree,
  bool? isRoot,
  bool? isMain,
  bool? isFav,
}) {
  return NeomFrequency(
    id: id ?? this.id,
    name: name ?? this.name,
    description: description ?? this.description,
    frequency: frequency ?? this.frequency,
    scaleDegree: scaleDegree ?? this.scaleDegree,
    isRoot: isRoot ?? this.isRoot,
    isMain: isMain ?? this.isMain,
    isFav: isFav ?? this.isFav,
  );
}