copyWith method
Implementation
SensorEvent copyWith({
Sensor? sensor,
int? accuracy,
int? timestamp,
List<double>? values,
}) {
return SensorEvent(
sensor ?? this.sensor,
accuracy ?? this.accuracy,
timestamp ?? this.timestamp,
values ?? this.values,
);
}