VirtualDropdownList<T> constructor

const VirtualDropdownList<T>({
  1. Key? key,
  2. required List<T> items,
  3. required Widget itemBuilder(
    1. BuildContext context,
    2. T item,
    3. bool isHighlighted
    ),
  4. dynamic onItemTapped(
    1. T item
    )?,
  5. double itemHeight = 48.0,
  6. double maxHeight = 300.0,
  7. int bufferSize = 3,
  8. T? highlightedItem,
  9. EdgeInsetsGeometry? padding,
  10. Color? backgroundColor,
  11. BorderRadius? borderRadius,
  12. double? elevation,
})

Implementation

const VirtualDropdownList({
  super.key,
  required this.items,
  required this.itemBuilder,
  this.onItemTapped,
  this.itemHeight = 48.0,
  this.maxHeight = 300.0,
  this.bufferSize = 3, // Render 3 extra items above/below viewport
  this.highlightedItem,
  this.padding,
  this.backgroundColor,
  this.borderRadius,
  this.elevation,
});