copyWith method
OrderedValues
copyWith({
- List<
OrderedValue> ? values, - Optional<
int?> ? currentMinIndex, - Optional<
int?> ? currentMaxIndex,
Implementation
OrderedValues copyWith({
List<OrderedValue>? values,
Optional<int?>? currentMinIndex,
Optional<int?>? currentMaxIndex
}) {
return OrderedValues(
values: values ?? this.values,
currentMinIndex: currentMinIndex != null ? currentMinIndex.value : this.currentMinIndex,
currentMaxIndex: currentMaxIndex != null ? currentMaxIndex.value : this.currentMaxIndex
);
}