ScaleDivergingPow<Y>.sqrt constructor

ScaleDivergingPow<Y>.sqrt({
  1. List<num>? domain,
  2. required Y interpolator(
    1. num
    ),
})

Returns a new diverging scale with a square-root transform, analogous to a ScalePow.sqrt.

Implementation

ScaleDivergingPow.sqrt({super.domain, required super.interpolator}) {
  exponent = 0.5;
  initPowish();
}