copyWith method

Borders copyWith({
  1. Optional<double?>? snapping,
  2. bool? isLg,
  3. String? value,
  4. double? min,
  5. double? max,
  6. Optional<double?>? currentMin,
  7. Optional<double?>? currentMax,
})

Implementation

Borders copyWith({
  Optional<double?>? snapping,
  bool? isLg,
  String? value,
  double? min,
  double? max,
  Optional<double?>? currentMin,
  Optional<double?>? currentMax
}) {
  return Borders(
    snapping: snapping != null ? snapping.value : this.snapping,
    isLg: isLg ?? this.isLg,
    value: value ?? this.value,
    min: min ?? this.min,
    max: max ?? this.max,
    currentMin: currentMin != null ? currentMin.value : this.currentMin,
    currentMax: currentMax != null ? currentMax.value : this.currentMax
  );
}