compact_number 0.0.2 copy "compact_number: ^0.0.2" to clipboard
compact_number: ^0.0.2 copied to clipboard

Convert large number to short readable format such as 10K, 5M, 10B etc.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add compact_number

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  compact_number: ^0.0.2

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:compact_number/compact_number.dart';
5
likes
140
points
34
downloads

Publisher

verified publishermddanish.dev

Weekly Downloads

Convert large number to short readable format such as 10K, 5M, 10B etc.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, intl

More

Packages that depend on compact_number