TvGridView constructor

TvGridView({
  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. required SliverGridDelegate gridDelegate,
  10. bool addAutomaticKeepAlives = true,
  11. bool addRepaintBoundaries = true,
  12. bool addSemanticIndexes = true,
  13. double? cacheExtent,
  14. List<ScrollGroupDpadFocus> children = const [],
  15. int? semanticChildCount,
  16. FocusScopeNode? focusScopeNode,
  17. FocusTraversalPolicy? policy,
  18. bool descendantsAreFocusable = true,
  19. bool descendantsAreTraversable = true,
  20. bool autofocus = false,
  21. ScrollGroupDpadEventCallback? onUp,
  22. ScrollGroupDpadEventCallback? onDown,
  23. ScrollGroupDpadEventCallback? onLeft,
  24. ScrollGroupDpadEventCallback? onRight,
  25. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  26. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  27. String? restorationId,
  28. Clip clipBehavior = Clip.hardEdge,
  29. HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
})

Implementation

TvGridView({
  super.key,
  super.scrollDirection,
  super.reverse,
  super.controller,
  super.primary,
  super.physics,
  super.shrinkWrap,
  super.padding,
  required this.gridDelegate,
  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);