copyWith method

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

Implementation

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