LayoutBoxViewport constructor

const LayoutBoxViewport({
  1. Key? key,
  2. required TextDirection textDirection,
  3. required bool reversePaint,
  4. required Axis mainScrollDirection,
  5. required ViewportOffset horizontal,
  6. required ViewportOffset vertical,
  7. required AxisDirection horizontalAxisDirection,
  8. required AxisDirection verticalAxisDirection,
  9. required Layout layout,
  10. required LayoutOverflow horizontalOverflow,
  11. required LayoutOverflow verticalOverflow,
  12. required TextBaseline? textBaseline,
  13. required BorderRadius borderRadius,
  14. required Clip clipBehavior,
  15. required List<Widget> children,
})

Creates a layout viewport with the specified configuration.

This constructor is typically called internally by LayoutBoxWidget and requires all parameters to be properly configured for the layout to work.

The children parameter specifies the widgets to be laid out within this viewport. The layout algorithm defined by layout will position them.

Implementation

const LayoutBoxViewport({
  super.key,
  required this.textDirection,
  required this.reversePaint,
  required this.mainScrollDirection,
  required this.horizontal,
  required this.vertical,
  required this.horizontalAxisDirection,
  required this.verticalAxisDirection,
  required this.layout,
  required this.horizontalOverflow,
  required this.verticalOverflow,
  required this.textBaseline,
  required this.borderRadius,
  required this.clipBehavior,
  required super.children,
});