copyWith method

Range copyWith({
  1. Quantity? low,
  2. Quantity? high,
})

Creates a deep copy of this Range.

Implementation

Range copyWith({
  Quantity? low,
  Quantity? high,
}) =>
    Range(
      low: low ?? this.low,
      high: high ?? this.high,
    );