SliverWaterfallFlowDelegate constructor
const
SliverWaterfallFlowDelegate({
- double mainAxisSpacing = 0.0,
- double crossAxisSpacing = 0.0,
- LastChildLayoutTypeBuilder? lastChildLayoutTypeBuilder,
- CollectGarbage? collectGarbage,
- ViewportBuilder? viewportBuilder,
- 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,
);