operator [] method

  1. @override
num operator [](
  1. num domainValue
)

Applies the scale function to the domainValue.

Returns the pixel location for the given domainValue or null if the domainValue could not be found/translated by this scale. Non-numeric scales should be the only ones that can return null.

Implementation

@override
num operator [](num domainValue) {
  _configureScale();
  return _scaleFunction[domainValue];
}