StatePickerDropdown<T> constructor

const StatePickerDropdown<T>({
  1. Key? key,
  2. required ValueChanged<T> onValuePicked,
  3. bool itemFilter(
    1. T item
    )?,
  4. Comparator<T>? sortComparator,
  5. List<T>? states,
  6. List<T>? topStates,
  7. double? mainHeight,
  8. bool isEqual(
    1. T state,
    2. T topState
    )?,
  9. Widget itemBuilder(
    1. T item
    )?,
  10. T? selectedState,
  11. bool isExpanded = false,
  12. double? itemHeight = kMinInteractiveDimension,
  13. Widget selectedItemBuilder(
    1. T item
    )?,
  14. bool isDense = false,
  15. Widget? underline,
  16. Color? dropdownColor,
  17. VoidCallback? onTap,
  18. Widget? icon,
  19. Color? iconDisabledColor,
  20. Color? iconEnabledColor,
  21. double iconSize = 24.0,
  22. Widget? hint,
  23. Widget? disabledHint,
  24. 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,
});