copyWith method

LedData copyWith({
  1. String? ledName,
  2. int? ledValue,
})

Implementation

LedData copyWith({
  String? ledName,
  int? ledValue,
}) {
  return LedData(
    ledName: ledName ?? this.ledName,
    ledValue: ledValue ?? this.ledValue,
  );
}