StatePickerDropdown<T> constructor
const
StatePickerDropdown<T> ({
- Key? key,
- required ValueChanged<
T> onValuePicked, - bool itemFilter(
- T item
- Comparator<
T> ? sortComparator, - List<
T> ? states, - List<
T> ? topStates, - double? mainHeight,
- bool isEqual(
- T state,
- T topState
- Widget itemBuilder(
- T item
- T? selectedState,
- bool isExpanded = false,
- double? itemHeight = kMinInteractiveDimension,
- Widget selectedItemBuilder(
- T item
- bool isDense = false,
- Widget? underline,
- Color? dropdownColor,
- VoidCallback? onTap,
- Widget? icon,
- Color? iconDisabledColor,
- Color? iconEnabledColor,
- double iconSize = 24.0,
- Widget? hint,
- Widget? disabledHint,
- bool isFirstDefaultIfInitialValueNotProvided = true,
Creates a StatePickerDropdown
with the provided configuration.
Implementation
const StatePickerDropdown({
super.key,
required this.onValuePicked,
this.itemFilter,
this.sortComparator,
this.states,
this.topStates,
this.mainHeight,
this.isEqual,
this.itemBuilder,
this.selectedState,
this.isExpanded = false,
this.itemHeight = kMinInteractiveDimension,
this.selectedItemBuilder,
this.isDense = false,
this.underline,
this.dropdownColor,
this.onTap,
this.icon,
this.iconDisabledColor,
this.iconEnabledColor,
this.iconSize = 24.0,
this.hint,
this.disabledHint,
this.isFirstDefaultIfInitialValueNotProvided = true,
});