withRange method

YAxisConfig withRange(
  1. double min,
  2. double max
)

Replaces YAxisConfig.min and YAxisConfig.max together.

The parameters are assert-coupled, so they only move as a pair.

Implementation

YAxisConfig withRange(double min, double max) => copyWith(min: min, max: max);