mx_formatter 1.0.0 copy "mx_formatter: ^1.0.0" to clipboard
mx_formatter: ^1.0.0 copied to clipboard

A Dart package for formatting quantities, percentages, and monetary values. Removes trailing zeros and adds thousand separators with ease.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add mx_formatter

With Flutter:

 $ flutter pub add mx_formatter

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

dependencies:
  mx_formatter: ^1.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:mx_formatter/mx_formatter.dart';
0
likes
160
points
6
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Dart package for formatting quantities, percentages, and monetary values. Removes trailing zeros and adds thousand separators with ease.

Repository (GitHub)
View/report issues

Topics

#formatting #numbers #utilities #money

License

MIT (license)

More

Packages that depend on mx_formatter