sort_price 0.0.3 sort_price: ^0.0.3 copied to clipboard
This is a simple package who can help you to sort your price number from a number to unit, ten, hundreds and thousands
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add sort_price
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
sort_price: ^0.0.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:sort_price/sort_price.dart';