SliverWaterfallFlowDelegate constructor

const SliverWaterfallFlowDelegate({
  1. double mainAxisSpacing = 0.0,
  2. double crossAxisSpacing = 0.0,
  3. LastChildLayoutTypeBuilder? lastChildLayoutTypeBuilder,
  4. CollectGarbage? collectGarbage,
  5. ViewportBuilder? viewportBuilder,
  6. bool closeToTrailing = false,
})

Creates a delegate that makes masonry layout with tiles in the cross axis.

All of the arguments must not be null. The mainAxisSpacing and crossAxisSpacing arguments must not be negative.

Implementation

const SliverWaterfallFlowDelegate({
  this.mainAxisSpacing = 0.0,
  this.crossAxisSpacing = 0.0,
  LastChildLayoutTypeBuilder? lastChildLayoutTypeBuilder,
  CollectGarbage? collectGarbage,
  ViewportBuilder? viewportBuilder,
  bool closeToTrailing = false,
})  : assert(mainAxisSpacing >= 0),
      assert(crossAxisSpacing >= 0),
      super(
        lastChildLayoutTypeBuilder: lastChildLayoutTypeBuilder,
        collectGarbage: collectGarbage,
        viewportBuilder: viewportBuilder,
        closeToTrailing: closeToTrailing,
      );