graduatedSkip property

(bool Function(num, Shape)?) graduatedSkip

Gets or sets the function to determine which values along a "Graduated" Panel will be skipped. The default is null and doesn't skip any ticks.

The function takes a number argument, a value between Panel#graduatedMin and Panel#graduatedMax, and this Shape. The function will return a boolean, whether the tick will be skipped at the value of the argument.

Note that the second argument is the Shape, not a particular tick that would be rendered at the given value. The function, if supplied, must not have any side-effects.

Implementation

_i2.bool Function(
  _i2.num,
  _i3.Shape,
)? get graduatedSkip => (
      _i2.num p0,
      _i3.Shape p1,
    ) =>
        _i4.callMethod(
          _i4.getProperty(
            this,
            'graduatedSkip',
          ),
          r'call',
          [
            this,
            p0,
            p1,
          ],
        );
void graduatedSkip=(bool value(num, Shape)?)

Implementation

set graduatedSkip(
    _i2.bool Function(
      _i2.num,
      _i3.Shape,
    )? value) {
  _i4.setProperty(
    this,
    'graduatedSkip',
    value == null ? _i5.undefined : _i4.allowInterop(value),
  );
}