TvListView constructor

TvListView({
  1. Key? key,
  2. Axis scrollDirection = Axis.vertical,
  3. bool reverse = false,
  4. ScrollController? controller,
  5. bool? primary,
  6. ScrollPhysics? physics,
  7. bool shrinkWrap = false,
  8. EdgeInsetsGeometry? padding,
  9. double? itemExtent,
  10. ItemExtentBuilder? itemExtentBuilder,
  11. Widget? prototypeItem,
  12. bool addAutomaticKeepAlives = true,
  13. bool addRepaintBoundaries = true,
  14. bool addSemanticIndexes = true,
  15. double? cacheExtent,
  16. List<ScrollGroupDpadFocus> children = const [],
  17. int? semanticChildCount,
  18. FocusScopeNode? focusScopeNode,
  19. FocusTraversalPolicy? policy,
  20. bool descendantsAreFocusable = true,
  21. bool descendantsAreTraversable = true,
  22. bool autofocus = false,
  23. ScrollGroupDpadEventCallback? onUp,
  24. ScrollGroupDpadEventCallback? onDown,
  25. ScrollGroupDpadEventCallback? onLeft,
  26. ScrollGroupDpadEventCallback? onRight,
  27. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  28. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  29. String? restorationId,
  30. Clip clipBehavior = Clip.hardEdge,
  31. HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
})

Implementation

TvListView({
  super.key,
  super.scrollDirection,
  super.reverse,
  super.controller,
  super.primary,
  super.physics,
  super.shrinkWrap,
  super.padding,
  this.itemExtent,
  this.itemExtentBuilder,
  this.prototypeItem,
  bool addAutomaticKeepAlives = true,
  bool addRepaintBoundaries = true,
  bool addSemanticIndexes = true,
  super.cacheExtent,
  List<ScrollGroupDpadFocus> children = const [],
  int? semanticChildCount,
  this.focusScopeNode,
  FocusTraversalPolicy? policy,
  this.descendantsAreFocusable = true,
  this.descendantsAreTraversable = true,
  this.autofocus = false,
  this.onUp,
  this.onDown,
  this.onLeft,
  this.onRight,
  super.dragStartBehavior,
  super.keyboardDismissBehavior,
  super.restorationId,
  super.clipBehavior,
  super.hitTestBehavior,
}) : childrenDelegate = SliverChildListDelegate(
       children,
       addAutomaticKeepAlives: addAutomaticKeepAlives,
       addRepaintBoundaries: addRepaintBoundaries,
       addSemanticIndexes: addSemanticIndexes,
     ),
     policy = policy ?? ReadingOrderTraversalPolicy(),
     super(semanticChildCount: semanticChildCount ?? children.length);