format method

  1. @override
String format(
  1. num value
)
override

Formats value into a display string.

Implementation

@override
String format(num value) {
  final space = spaceBeforeSymbol ? ' ' : '';
  final special = formatSpecial(value);
  if (special != null) return '$special$space$symbol';

  return '${style.format(value * scale)}$space$symbol';
}