RenderListBody constructor Null safety

RenderListBody(
  1. {List<RenderBox>? children,
  2. AxisDirection axisDirection = AxisDirection.down}
)

Creates a render object that arranges its children sequentially along a given axis.

By default, children are arranged along the vertical axis.

Implementation

RenderListBody({
  List<RenderBox>? children,
  AxisDirection axisDirection = AxisDirection.down,
}) : assert(axisDirection != null),
     _axisDirection = axisDirection {
  addAll(children);
}