ListView constructor

ListView({
  1. Key? key,
  2. required List<Widget> children,
  3. int selectedIndex = 0,
  4. int? hoveredIndex,
  5. Style itemStyle = Style.empty,
  6. Style selectedStyle = const Style(modifiers: Modifier.reverse),
  7. Style? hoveredStyle,
  8. bool showScrollbar = false,
  9. void onSelect(
    1. int
    )?,
  10. void onHover(
    1. int?
    )?,
})

Creates a ListView containing the specified children.

Implementation

ListView({
  super.key,
  required this.children,
  int selectedIndex = 0,
  int? hoveredIndex,
  this.itemStyle = Style.empty,
  this.selectedStyle = const Style(modifiers: Modifier.reverse),
  this.hoveredStyle,
  this.showScrollbar = false,
  this.onSelect,
  this.onHover,
}) : initialSelectedIndex = selectedIndex,
     initialHoveredIndex = hoveredIndex;