AppMasonry.builder constructor

const AppMasonry.builder({
  1. Key? key,
  2. required int itemCount,
  3. required IndexedWidgetBuilder itemBuilder,
  4. int? columnCount,
  5. double maxCrossAxisExtent = 320,
  6. double spacing = 12,
  7. double runSpacing = 12,
  8. EdgeInsetsGeometry padding = EdgeInsets.zero,
  9. ScrollPhysics? physics,
  10. bool shrinkWrap = false,
  11. bool reverse = false,
  12. bool? primary,
  13. ScrollController? controller,
})

Creates a masonry layout using a builder function.

Implementation

const AppMasonry.builder({
  super.key,
  required int this.itemCount,
  required IndexedWidgetBuilder this.itemBuilder,
  this.columnCount,
  this.maxCrossAxisExtent = 320,
  this.spacing = 12,
  this.runSpacing = 12,
  this.padding = EdgeInsets.zero,
  this.physics,
  this.shrinkWrap = false,
  this.reverse = false,
  this.primary,
  this.controller,
}) : children = null;