Symbols
​
A number of currency have different symbols, you can specify the symbol when creating the currency.
The Common Currencies have the appropriate symbol configured for each currency.
1
import 'package:money2/money2.dart';
2
​
3
// Create a currency for Japan's yen with the correct symbol
4
Currency jpy = Currency.create('JPY', 0, symbol: 'Β₯');
5
Currency euro = Currency.create('EUR', 2, symbol: '€');
Copied!
Copy link