money_readable 1.1.15 money_readable: ^1.1.15 copied to clipboard
How to get a number converted into something like this 12K, 1.5M, 4.2B from a normal number like 134900
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add money_readable
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
money_readable: ^1.1.15
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:money_readable/money_readable.dart';