copyWith method

ValueItem copyWith({
  1. String? label,
  2. String? value,
})

CopyWith method for ValueItem

Implementation

ValueItem copyWith({
  String? label,
  String? value,
}) {
  return ValueItem(
    label: label ?? this.label,
    value: value ?? this.value,
  );
}