graduatedSkip property

bool Function(num, TextBlock)? get 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 text labels.

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

Note that the second argument is the TextBlock, not a particular label 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.TextBlock,
)? get graduatedSkip => (
      _i2.num p0,
      _i3.TextBlock p1,
    ) =>
        _i4.callMethod(
          _i4.getProperty(
            this,
            'graduatedSkip',
          ),
          r'call',
          [
            this,
            p0,
            p1,
          ],
        );
set graduatedSkip (bool value(num, TextBlock)?)

Implementation

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