TDropdown<T> constructor
const
TDropdown<T> ({
- Key? key,
- required List<
T> items, - required ValueChanged<
T?> ? onChanged, - required String itemLabel(
- T
- T? value,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
- InputDecoration? decoration,
- Color? borderColor,
- double borderWidth = 1.0,
- 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,
});