DropddownCustom<T> constructor

const DropddownCustom<T>({
  1. Key? key,
  2. required List<T> items,
  3. T? selectedItem,
  4. bool isExpanded = false,
  5. double? height,
  6. EdgeInsetsGeometry? padding,
  7. Decoration? border,
  8. TextStyle? hintTextStyle,
  9. String hintText = 'Pilih item dibawah',
  10. Color? backgroundColor,
  11. required ValueChanged<T?>? onChanged,
  12. dynamic onTapItem(
    1. T? value
    )?,
  13. required Widget builder(
    1. T? value
    ),
  14. Widget? icon,
  15. 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);