big_numbers 2.2.0 big_numbers: ^2.2.0 copied to clipboard
Simplify numbers from large phrases into shorter and smaller formats. Example such as 1,000,000 will be converted to 1M. Support to add commas is included as well.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add big_numbers
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
big_numbers: ^2.2.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:big_numbers/big_numbers.dart';