Flex constructor

Flex({
  1. required Axis direction,
  2. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  3. MainAxisSize mainAxisSize = MainAxisSize.max,
  4. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  5. VerticalDirection verticalDirection = VerticalDirection.down,
  6. List<Widget> children = const <Widget>[],
})

Implementation

Flex({
  required this.direction,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.mainAxisSize = MainAxisSize.max,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.verticalDirection = VerticalDirection.down,
  List<Widget> children = const <Widget>[],
}) : super(children: children);