SliverWaterfallFlowDelegateWithMaxCrossAxisExtent constructor
const
SliverWaterfallFlowDelegateWithMaxCrossAxisExtent({
- required double maxCrossAxisExtent,
- double mainAxisSpacing = 0.0,
- double crossAxisSpacing = 0.0,
- LastChildLayoutTypeBuilder? lastChildLayoutTypeBuilder,
- CollectGarbage? collectGarbage,
- ViewportBuilder? viewportBuilder,
- bool closeToTrailing = false,
Creates a delegate that makes masonry layouts with tiles that have a maximum cross-axis extent.
All of the arguments must not be null. The maxCrossAxisExtent,
mainAxisSpacing
, and crossAxisSpacing
arguments must not be negative.
Implementation
const SliverWaterfallFlowDelegateWithMaxCrossAxisExtent({
required this.maxCrossAxisExtent,
double mainAxisSpacing = 0.0,
double crossAxisSpacing = 0.0,
LastChildLayoutTypeBuilder? lastChildLayoutTypeBuilder,
CollectGarbage? collectGarbage,
ViewportBuilder? viewportBuilder,
bool closeToTrailing = false,
}) : assert(maxCrossAxisExtent >= 0),
super(
mainAxisSpacing: mainAxisSpacing,
crossAxisSpacing: crossAxisSpacing,
lastChildLayoutTypeBuilder: lastChildLayoutTypeBuilder,
collectGarbage: collectGarbage,
viewportBuilder: viewportBuilder,
closeToTrailing: closeToTrailing,
);