ListView.raw constructor
ListView.raw({})
Creates a high-performance ListView that bypasses the element tree for raw lines.
Implementation
factory ListView.raw({
Key? key,
required List<String> lines,
int selectedIndex = 0,
int? hoveredIndex,
Style itemStyle = Style.empty,
Style selectedStyle = const Style(modifiers: Modifier.reverse),
Style? hoveredStyle,
bool showScrollbar = false,
void Function(int)? onSelect,
void Function(int?)? onHover,
}) {
return _RawListWidget(
key: key,
lines: lines,
selectedIndex: selectedIndex,
hoveredIndex: hoveredIndex,
itemStyle: itemStyle,
selectedStyle: selectedStyle,
hoveredStyle: hoveredStyle,
showScrollbar: showScrollbar,
onSelect: onSelect,
onHover: onHover,
);
}