copy method

ThresholdScale<D, R> copy()

Creates a copy of this scale.

Implementation

ThresholdScale<D, R> copy() {
  return ThresholdScale<D, R>(
    domain: List.from(_domain),
    range: List.from(_range),
  );
}