currencyDropDownEntry method

Widget currencyDropDownEntry({
  1. String title = 'Currency',
  2. String subTitle = 'Select the currency for your menu',
  3. dynamic onChanged(
    1. String?
    )?,
  4. 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,
);