VirtualDropdownList<T> constructor
const
VirtualDropdownList<T> ({
- Key? key,
- required List<
T> items, - required Widget itemBuilder(
- BuildContext context,
- T item,
- bool isHighlighted
- dynamic onItemTapped(
- T item
- double itemHeight = 48.0,
- double maxHeight = 300.0,
- int bufferSize = 3,
- T? highlightedItem,
- EdgeInsetsGeometry? padding,
- Color? backgroundColor,
- BorderRadius? borderRadius,
- 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,
});