DropddownCustom<T> constructor
const
DropddownCustom<T> ({
- Key? key,
- required List<
T> items, - T? selectedItem,
- bool isExpanded = false,
- double? height,
- EdgeInsetsGeometry? padding,
- Decoration? border,
- TextStyle? hintTextStyle,
- String hintText = 'Pilih item dibawah',
- Color? backgroundColor,
- required ValueChanged<
T?> ? onChanged, - dynamic onTapItem(
- T? value
- required Widget builder(
- T? value
- Widget? icon,
- Widget? underline,
Implementation
const DropddownCustom({
Key? key,
required this.items,
this.selectedItem,
this.isExpanded = false,
this.height,
this.padding,
this.border,
this.hintTextStyle,
this.hintText = 'Pilih item dibawah',
this.backgroundColor,
required this.onChanged,
this.onTapItem,
required this.builder,
this.icon,
this.underline,
}) : super(key: key);