0 purchases
to format
To Format #
Adds a toFormat instance method to num.
Install #
$ dart pub add to_format
copied to clipboard
Use #
import 'package:to_format/to_format.dart';
void main() {
num x = 1234567.89;
String formatted = x.toFormat(dp: 2, fmt: {'groupSeparator': ' '});
print(formatted); // 1 234 567.89
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.