NomoDropDownButton<T> constructor

const NomoDropDownButton<T>({
  1. required List<DropDownItem<T>> options,
  2. required void onChanged(
    1. T? value
    ),
  3. Key? key,
  4. bool isExpanded = false,
  5. bool fitText = false,
  6. double? width,
  7. T? inital,
  8. IconData icon = Icons.arrow_drop_down,
  9. Widget? child,
  10. ValueNotifier<T?>? valueNotifier,
  11. EdgeInsetsGeometry? padding,
  12. Color? dropdownColor,
})

Implementation

const NomoDropDownButton({
  required this.options,
  required this.onChanged,
  super.key,
  this.isExpanded = false,
  this.fitText = false,
  this.width,
  this.inital,
  this.icon = Icons.arrow_drop_down,
  this.child,
  this.valueNotifier,
  this.padding,
  this.dropdownColor,
}) : assert(options.length > 0, 'options cannot be empty');