call method

  1. @override
Y? call(
  1. num? x
)
inherited

Given a value from the domain, returns the corresponding value from the range.

Implementation

@override
call(x) {
  return x == null || x.isNaN
      ? unknown
      : interpolator(_k10 == 0
          ? 0.5
          : (x = (x - _t0) * _k10, clamp ? max(0, min(1, x)) : x).$2);
}