JidoujishoDropdown<T> constructor

const JidoujishoDropdown<T>(
  1. {required List<T> options,
  2. required T initialOption,
  3. required String generateLabel(
    1. T
    ),
  4. required dynamic onChanged(
    1. T?
    ),
  5. bool enabled = true,
  6. Key? key}
)

Define a dropdown with options and an action to do when the selected option is changed.

Implementation

const JidoujishoDropdown({
  required this.options,
  required this.initialOption,
  required this.generateLabel,
  required this.onChanged,
  this.enabled = true,
  super.key,
});