copyWith method

DashboardModel copyWith({
  1. int? distance,
  2. int? duration,
  3. bool? soundsEnabled,
})

Implementation

DashboardModel copyWith({
  int? distance,
  int? duration,
  bool? soundsEnabled,
}) {
  return DashboardModel(
    distance: distance ?? this.distance,
    duration: duration ?? this.duration,
    soundsEnabled: soundsEnabled ?? this.soundsEnabled,
  );
}