RhythmBox/lib/collections/formatters.dart
2024-08-27 01:49:05 +08:00

9 lines
198 B
Dart
Executable File

import 'package:intl/intl.dart';
final compactNumberFormatter = NumberFormat.compact();
final usdFormatter = NumberFormat.compactCurrency(
locale: 'en-US',
symbol: r"$",
decimalDigits: 2,
);