NomoDropDownButton<T> constructor
const
NomoDropDownButton<T> ({
- required List<
DropDownItem< options,T> > - required void onChanged(
- T? value
- Key? key,
- bool isExpanded = false,
- bool fitText = false,
- double? width,
- T? inital,
- IconData icon = Icons.arrow_drop_down,
- Widget? child,
- ValueNotifier<
T?> ? valueNotifier, - EdgeInsetsGeometry? padding,
- 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');