copyWith method

FoOptionModel copyWith({
  1. FoQuizModel? child,
  2. String? label,
  3. int? score,
  4. bool? selected,
  5. Object? value,
})

Implementation

FoOptionModel copyWith({
  FoQuizModel? child,
  String? label,
  int? score,
  bool? selected,
  Object? value,
}) {
  return FoOptionModel(
    child: child ?? this.child,
    label: label ?? this.label,
    score: score ?? this.score,
    selected: selected ?? this.selected,
    value: value ?? this.value,
  );
}