SliverWaterfallFlow.aligned constructor

const SliverWaterfallFlow.aligned({
  1. Key? key,
  2. IndexedWidgetBuilder? itemBuilder,
  3. int? itemCount,
  4. ChildIndexGetter? findChildIndexCallback,
  5. SemanticIndexCallback? semanticIndexCallback,
  6. bool addAutomaticKeepALives = false,
  7. bool addRepaintBoundaries = false,
  8. bool addSemanticIndexes = true,
  9. double mainAxisSpacing = 0,
  10. double? maxCrossAxisExtent,
  11. double crossAxisSpacing = 0,
  12. int? crossAxisCount,
  13. Widget placeholder = const PlaceholderChild(),
})

Implementation

const SliverWaterfallFlow.aligned(
    {super.key,
    this.itemBuilder,
    this.itemCount,
    this.findChildIndexCallback,
    this.semanticIndexCallback,
    this.addAutomaticKeepALives = false,
    this.addRepaintBoundaries = false,
    this.addSemanticIndexes = true,
    this.mainAxisSpacing = 0,
    this.maxCrossAxisExtent,
    this.crossAxisSpacing = 0,
    this.crossAxisCount,
    this.placeholder = const PlaceholderChild()})
    : assert(maxCrossAxisExtent != null || crossAxisCount != null),
      assert(itemBuilder != null),
      children = null,
      aligned = true;