currencyDropDownEntry method
Widget
currencyDropDownEntry(
{ - String title = 'Currency',
- String subTitle = 'Select the currency for your menu',
- dynamic onChanged(
- String?
)?,
- String? defaultValue,
})
Implementation
Widget currencyDropDownEntry({
String title = 'Currency',
String subTitle = 'Select the currency for your menu',
Function(String?)? onChanged,
String? defaultValue,
}) => categoryFormEntry(
Currencies.values
.map((currency_enum) => currency_enum.name.toUpperCase())
.toList(),
title: title,
subTitle: subTitle,
iconData: Icons.currency_exchange,
hintText: 'Select currency',
onChanged: onChanged,
defaultValue: defaultValue,
);