AutoLayout constructor

AutoLayout({
  1. List<double> breakpoints = const [],
  2. List<LayoutWidgetBuilder> builders = const [],
  3. 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);