OptimizedLocationDropdown<T> constructor

const OptimizedLocationDropdown<T>({
  1. Key? key,
  2. required List<T> items,
  3. required String getDisplayName(
    1. T item
    ),
  4. String? getSubtitle(
    1. T item
    )?,
  5. Widget? getLeadingIcon(
    1. T item
    )?,
  6. dynamic onItemSelected(
    1. T item
    )?,
  7. T? selectedItem,
  8. String? hintText,
  9. double maxHeight = 300.0,
})

Implementation

const OptimizedLocationDropdown({
  super.key,
  required this.items,
  required this.getDisplayName,
  this.getSubtitle,
  this.getLeadingIcon,
  this.onItemSelected,
  this.selectedItem,
  this.hintText,
  this.maxHeight = 300.0,
});