paylike_currencies 1.0.7 copy "paylike_currencies: ^1.0.7" to clipboard
paylike_currencies: ^1.0.7 copied to clipboard

Covers all the currencies supported on paylike.io platform and provides a handy interface for them

example/paylike_currencies_example.dart

import 'package:paylike_currencies/paylike_currencies.dart';

void main() {
  var currencies = PaylikeCurrencies();
  var eur = currencies.byCode(CurrencyCode.EUR);
  print(eur.code);

  var all = currencies.list();
  for (var currency in all) {
    print(currency);
  }

  CurrencyCode? current;
  try {
    current = currencies.getCurrencyCode('USD');
    var usd = currencies.byCode(current);
  } on MissingCurrencyException catch (e) {
    print('${e.cause}, ${e.code}, ${e.numeric}, ${e.requestCode}');
  }
}
0
likes
160
points
123
downloads

Publisher

verified publisherpaylike.io

Weekly Downloads

Covers all the currencies supported on paylike.io platform and provides a handy interface for them

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on paylike_currencies