copyWith method

OrderedValue copyWith({
  1. String? value,
  2. Optional<String?>? text,
})

Implementation

OrderedValue copyWith({
  String? value,
  Optional<String?>? text
}) {
  return OrderedValue(
    value: value ?? this.value,
    text: text != null ? text.value : this.text
  );
}