format method
Formats value into a display string.
Implementation
@override
String format(num value) {
if (!_isSupportedWholeByteCount(value)) {
throw ArgumentError.value(
value,
'value',
'Must be a supported finite whole byte count.',
);
}
final unit = _unitMatcher.unitFor(value.abs());
return unit.format(
style.format(value / unit.scale),
space: spaceBeforeUnit,
);
}