AppMasonry.builder constructor
const
AppMasonry.builder({
- Key? key,
- required int itemCount,
- required IndexedWidgetBuilder itemBuilder,
- int? columnCount,
- double maxCrossAxisExtent = 320,
- double spacing = 12,
- double runSpacing = 12,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- bool reverse = false,
- bool? primary,
- 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;