price_converter 0.0.2 copy "price_converter: ^0.0.2" to clipboard
price_converter: ^0.0.2 copied to clipboard

Convert price with or without currency & formatter

price_converter #

Convert price with or without currency & formatter

Features #

  • Convert Formatted price like ₹50,685.56 -> 50685.56
  • Convert only price to formatted price like 50685.56 -> ₹50,685.56

Installation #

In your pubspec.yaml file within your Flutter Project:

dependencies:
  price_converter: 0.0.3

Usage #


            import 'package:price_converter/price_converter.dart';
            
            //Convert formatted price(String) to price(double) - ₹50,685.56 
            double priceInDouble = PriceConverter.getOnlyPrice(currency: "₹", price: "₹50,685.56");
            //₹50,685.56 -> 50685.56
            
            //Convert price(double) to formatted price(string) - 50685.56
            String priceInString = PriceConverter.getFormattedPrice(currency: "₹", price: 692550685.56);
            //50685.56 -> ₹50,685.56

5
likes
110
pub points
38%
popularity
screenshot

Publisher

verified publisherdharini.dev

Convert price with or without currency & formatter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on price_converter