TDropdown<T> constructor

const TDropdown<T>({
  1. Key? key,
  2. required List<T> items,
  3. required ValueChanged<T?>? onChanged,
  4. required String itemLabel(
    1. T
    ),
  5. T? value,
  6. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
  7. InputDecoration? decoration,
  8. Color? borderColor,
  9. double borderWidth = 1.0,
  10. String? hintText,
})

Implementation

const TDropdown({
  super.key,
  required this.items,
  required this.onChanged,
  required this.itemLabel,
  this.value,
  this.padding = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
  this.decoration,
  this.borderColor,
  this.borderWidth = 1.0,
  this.hintText,
});