percent static method
Percentage formatter
Implementation
static String percent(double value, int decimals, {String? locale}) {
final key = 'pct_${decimals}_${locale ?? 'en'}';
final fmt = _numCache.putIfAbsent(
key,
() => NumberFormat.percentPattern(locale),
);
final raw = fmt.format(value / 100);
return raw.replaceAll('%', ' %').trim(); // ECharts style spacing
}