precise static method
Fixed precision with thousand separators
Implementation
static String precise(double value, int decimals, {String? locale}) {
final key = 'precise_${decimals}_${locale ?? 'en'}';
final fmt = _numCache.putIfAbsent(
key,
() => NumberFormat.decimalPatternDigits(
locale: locale,
decimalDigits: decimals,
),
);
return fmt.format(value);
}