String? toFixedOrNull(int fractionDigits) { if (isNaN || isInfinite) { return null; } return toStringAsFixed(fractionDigits); }