add_comma

Creator: coderz1093

Last updated:

0 purchases

add_comma Image
add_comma Images
Add to Cart

Description:

add comma

add_comma #
Flutter and Dart package for adding a separater in any number.
It currently supports Intenational and Indian Number system.
In international System
e.g value = 1000
returns 1,000
In Indian system,
e.g value = 1000000
returns 10,00,000
Usage #
import the package
import 'package:add_comma/add_comma.dart';
Use the addCommas Function for the International Number system
final putComma = addCommas();
For Indian number system, use:
final putCommaIndian = addCommasIndian();
print( putComma(1000) );
print( putComma(1000000) );
print( putCommaIndian(1000000) );
Output #

1,000
1,000,000
10,00,000

You can also specify your own separator
final putComma = addCommas(separator: '_',);
print( putComma(1000) );
Output_ #

1_000


Made and Maintained by
Tonny Bawembye #
[email protected]
+256 781521534
+256 704436434

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.