paisa 0.0.3 copy "paisa: ^0.0.3" to clipboard
paisa: ^0.0.3 copied to clipboard

A Flutter and Dart plugin for converting currencies and getting the latest exchange rates. Supports 161 currencies.

paisa.dart #

2x

License: MIT

A simple package to converts currencies for Dart and Flutter.

Installation #

In your pubspec.yaml:

dependencies:
  paisa: ^0.0.3

Usage #

void main(List<String> args) {
  // Converts USD to INR
  print(CurrencyConvertor.convert(from: Currency.USD, to: Currency.INR, amount: 100));
  print(CurrencyConvertor.convertFromString(from: 'USD', to: 'INR', amount: 100));

  // Get exchange rate for USD to INR  
  print(CurrencyConvertor.rate(Currency.USD, Currency.INR));
  print(CurrencyConvertor.rateFromString('USD', 'INR'));
  print(CurrencyConvertor.rateFromCountryCode(from: 'US', to: 'IN'));
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

5
likes
0
pub points
52%
popularity

Publisher

unverified uploader

A Flutter and Dart plugin for converting currencies and getting the latest exchange rates. Supports 161 currencies.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http

More

Packages that depend on paisa