SliverWaterfallFlow constructor
const
SliverWaterfallFlow({
- Key? key,
- IndexedWidgetBuilder? itemBuilder,
- int? itemCount,
- ChildIndexGetter? findChildIndexCallback,
- SemanticIndexCallback? semanticIndexCallback,
- bool addAutomaticKeepALives = false,
- bool addRepaintBoundaries = false,
- bool addSemanticIndexes = true,
- double mainAxisSpacing = 0,
- double crossAxisSpacing = 0,
- double? maxCrossAxisExtent,
- int? crossAxisCount,
- Widget placeholder = const PlaceholderChild(),
Implementation
const SliverWaterfallFlow(
{super.key,
this.itemBuilder,
this.itemCount,
this.findChildIndexCallback,
this.semanticIndexCallback,
this.addAutomaticKeepALives = false,
this.addRepaintBoundaries = false,
this.addSemanticIndexes = true,
this.mainAxisSpacing = 0,
this.crossAxisSpacing = 0,
this.maxCrossAxisExtent,
this.crossAxisCount,
this.placeholder = const PlaceholderChild()})
: assert(maxCrossAxisExtent != null || crossAxisCount != null),
aligned = false,
children = null;