add_comma

Flutter and Dart package for adding a separater in a number.

e.g value = 1000
returns 1,000

Usage

import the package
import 'package:add_comma/add_comma.dart';

Use the addCommas Function
final putComma = addCommas();

print( putComma(1000) );
print( putComma(1000000) );

Output

1,000
1,000,000

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

print( putComma(1000) );

Output

1_000

Tonny Apps
tonnybaw75@gmail.com
+256 781521534
+256 704436434
Tonny Tech Company

Libraries

add_comma