ResponsiveFlex constructor

const ResponsiveFlex({
  1. Key? key,
  2. required List<Widget> children,
  3. double spacing = 0,
  4. double? breakpoint,
  5. ScreenType? switchOn,
  6. bool flipOnRtl = false,
  7. MainAxisAlignment? rowMainAxisAlignment,
  8. MainAxisAlignment? colMainAxisAlignment,
  9. CrossAxisAlignment? rowCrossAxisAlignment,
  10. CrossAxisAlignment? colCrossAxisAlignment,
  11. MainAxisSize mainAxisSize = MainAxisSize.max,
})

Implementation

const ResponsiveFlex({
  super.key,
  required this.children,
  this.spacing = 0,
  this.breakpoint,
  this.switchOn,
  this.flipOnRtl = false,
  this.rowMainAxisAlignment,
  this.colMainAxisAlignment,
  this.rowCrossAxisAlignment,
  this.colCrossAxisAlignment,
  this.mainAxisSize = MainAxisSize.max,
}) : assert(spacing >= 0, "Spacing must be >= 0");