roundingFN property

(num Function(num)?) roundingFN

Set the function for rounding the values when set.

Other examples:

  • Math.floor
  • fn(x) { // do your own rounding logic // return x; }

@default Math.round

Implementation

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

Implementation

set roundingFN(_i2.num Function(_i2.num)? value) {
  _i4.setProperty(
    this,
    'roundingFN',
    value == null ? _i6.undefined : _i4.allowInterop(value),
  );
}