📜  flutter intl currency - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:31.050000             🧑  作者: Mango

代码示例2
import 'package:intl/intl.dart';

void currency() {
    Locale locale = Localizations.localeOf(context);
    var format = NumberFormat.simpleCurrency(locale: locale.toString());
    print("CURRENCY SYMBOL ${format.currencySymbol}"); // $
    print("CURRENCY NAME ${format.currencyName}"); // USD
}