measureFormatter property

set measureFormatter (MeasureFormatter? formatter)

Formatter for measure values.

This is optional. The default formatter formats measure values with NumberFormat.decimalPattern. If the measure value is null, a dash is returned.

Implementation

set measureFormatter(MeasureFormatter? formatter) {
  legendEntryGenerator.measureFormatter =
      formatter ?? defaultLegendMeasureFormatter;
}