ListBody constructor Null safety

ListBody(
  1. {Key? key,
  2. Axis mainAxis,
  3. bool reverse,
  4. List<Widget> children = const <Widget>[]}
)

Creates a layout widget that arranges its children sequentially along a given axis.

By default, the mainAxis is Axis.vertical.

Implementation

ListBody({
  Key? key,
  this.mainAxis = Axis.vertical,
  this.reverse = false,
  List<Widget> children = const <Widget>[],
}) : assert(mainAxis != null),
     super(key: key, children: children);