copyWith method

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

CopyWith method for ValueItem

Implementation

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