defaultSemanticValueFormatter static method

String defaultSemanticValueFormatter(
  1. double value
)

The default semantic value formatter that formats the value as a percentage.

Implementation

static String defaultSemanticValueFormatter(double value) => '${(value * 100).toStringAsFixed(0)}%';