String? localizePercent(double? percent, {int digits = 1}) { if (percent == null) return null; return '${percent.toStringAsFixed(digits)}%'; }