ReactiveRowCol constructor

const ReactiveRowCol({
  1. Key? key,
  2. required bool rowWhen(
    1. double screenWidth
    ),
  3. required bool colWhen(
    1. double screenWidth
    ),
  4. required List<Widget> children(
    1. bool isRow,
    2. bool isCol
    ),
  5. MainAxisAlignment rowMainAxisAlignment = MainAxisAlignment.start,
  6. MainAxisAlignment colMainAxisAlignment = MainAxisAlignment.start,
  7. CrossAxisAlignment rowCrossAxisAlignment = CrossAxisAlignment.start,
  8. CrossAxisAlignment colCrossAxisAlignment = CrossAxisAlignment.start,
  9. MainAxisSize rowMainAxisSize = MainAxisSize.max,
  10. MainAxisSize colMainAxisSize = MainAxisSize.max,
  11. VerticalDirection rowVerticalDirection = VerticalDirection.down,
  12. VerticalDirection colVerticalDirection = VerticalDirection.down,
  13. TextBaseline? rowTextbaseline,
  14. TextBaseline? colTextbaseline,
  15. TextDirection? rowTextDirection,
  16. TextDirection? colTextDirection,
  17. Key? rowKey,
  18. Key? colKey,
})

The code snippet is defining a constructor for the ReactiveRowCol class in Dart.

Implementation

const ReactiveRowCol({
  Key? key,
  required this.rowWhen,
  required this.colWhen,
  required this.children,
  this.rowMainAxisAlignment = MainAxisAlignment.start,
  this.colMainAxisAlignment = MainAxisAlignment.start,
  this.rowCrossAxisAlignment = CrossAxisAlignment.start,
  this.colCrossAxisAlignment = CrossAxisAlignment.start,
  this.rowMainAxisSize = MainAxisSize.max,
  this.colMainAxisSize = MainAxisSize.max,
  this.rowVerticalDirection = VerticalDirection.down,
  this.colVerticalDirection = VerticalDirection.down,
  this.rowTextbaseline,
  this.colTextbaseline,
  this.rowTextDirection,
  this.colTextDirection,
  this.rowKey,
  this.colKey,
}) : super(key: key);