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