AutoLayout constructor
AutoLayout({
- List<
double> breakpoints = const [], - List<
LayoutWidgetBuilder> builders = const [], - Key? key,
Implementation
AutoLayout({this.breakpoints = const [], this.builders = const [], Key? key})
: assert(breakpoints.length == builders.length, 'Size of breakpoints and builders must be the same'),
assert(breakpoints.isAscendingOrder, 'Breakpoints should be in ascending order for auto layout to be able to use them'),
super(key: key);