copyWith method

LightSignaling copyWith({
  1. LightSignalingStatus? status,
  2. List<String>? signalValues,
})

Returns a copy of this object with its field values replaced by the ones provided to this method.

Implementation

LightSignaling copyWith({
  LightSignalingStatus? status,
  List<String>? signalValues,
}) {
  return LightSignaling(
    status: status ?? this.status.copyWith(),
    signalValues: signalValues ?? List<String>.from(this.signalValues),
  );
}