scaleIntervalText property

String Function(int index, num rulerScaleValue) scaleIntervalText
final

A function that provides the text to display for a unit interval.

The function takes two parameters:

  • index: the index of the unit interval.
  • rulerScaleValue: the value of the scale at that interval. It returns a String that will be displayed as the text for that unit interval.

Implementation

final String Function(int index, num rulerScaleValue) scaleIntervalText;