ResponsiveFlex constructor
const
ResponsiveFlex({
- Key? key,
- required List<
Widget> children, - double spacing = 0,
- double? breakpoint,
- ScreenType? switchOn,
- bool flipOnRtl = false,
- MainAxisAlignment? rowMainAxisAlignment,
- MainAxisAlignment? colMainAxisAlignment,
- CrossAxisAlignment? rowCrossAxisAlignment,
- CrossAxisAlignment? colCrossAxisAlignment,
- 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");