copyWith method

SensorEvent copyWith({
  1. Sensor? sensor,
  2. int? accuracy,
  3. int? timestamp,
  4. List<double>? values,
})

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,
  );
}