StaggeredGrid.custom constructor

StaggeredGrid.custom({
  1. Key? key,
  2. required StaggeredGridDelegate delegate,
  3. double mainAxisSpacing = 0,
  4. double crossAxisSpacing = 0,
  5. AxisDirection? axisDirection,
  6. List<Widget> children = const <Widget>[],
})

Creates a StaggeredGrid with a custom delegate.

Implementation

StaggeredGrid.custom({
  Key? key,
  required this.delegate,
  this.mainAxisSpacing = 0,
  this.crossAxisSpacing = 0,
  this.axisDirection,
  List<Widget> children = const <Widget>[],
})  : assert(mainAxisSpacing >= 0),
      assert(crossAxisSpacing >= 0),
      super(key: key, children: children);