Numeral | Coderz Product

numeral

Last updated:

0 purchases

numeral Image
numeral Images
Add to Cart

Description:

numeral

Numeral #
A Dart library for Format number into beautiful string, Format the number
into a beautiful, readable and short string.
Installation #
Add this to your package's pubspec.yaml file:
dependencies:
numeral: latest
copied to clipboard
Usage #
Using it is very simple! Just chain call the numeral() method or
beautiful attribute after your number (num/int/double)!
import 'package:numeral/numeral.dart';

void main() {
print(1000.numeral()); // -> 1K
print(1000.beautiful); // -> 1K
}
copied to clipboard
Configuration #

digits (default: 3): The number of digits to appear after the decimal
point.
builder (default: NumeralUnit.value): The function to build the
suffix.

Global configuration #
import 'package:numeral/numeral.dart';

Numeral.digits = 2;
Numeral.builder = (unit) => '<Your custom suffix>';

copied to clipboard
License #
This library is licensed under the MIT License.

License:

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

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.