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

Add currency to amount

to_currency #

Install the to_currency package from pub.flutter-io.cn: #

flutter pub add to_currency

Getting Started #

import 'package:to_currency/to_currency.dart';

String amount = toCurrency(
    amount: 1000000,
    currency: "XOF",
    currencyPrefixed: false,
    separator: ".",
    decimalSeparator: ",",
    decimalDigits: 2,
);

print(amount); // 1.000.000,00 XOF

String cfa = toCFA(2000) // 2 000 F CFA

String dollar = toDollar(50.5, decimalDigits: 2); // $50.50

String usd = toUSD(-70.35); // -70.35 USD

2
likes
145
points
18
downloads

Publisher

verified publisherfreddydro.dev

Weekly Downloads

Add currency to amount

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on to_currency