copy method

DivergingScale<R> copy()

Creates a copy of this scale.

Implementation

DivergingScale<R> copy() {
  return DivergingScale<R>(
    domain: List.from(_domain),
    interpolator: _interpolator,
    clamp: _clamp,
  );
}