toFlutter method

  1. @override
SliverChildDelegate toFlutter(
  1. AnyWidgetContext context
)
override

Implementation

@override
SliverChildDelegate toFlutter(AnyWidgetContext context) {
  return map(
    list: (value) => SliverChildListDelegate(
      children.getChildren(context),
      addAutomaticKeepAlives: addAutomaticKeepAlives ?? true,
      addRepaintBoundaries: addRepaintBoundaries ?? true,
      addSemanticIndexes: addSemanticIndexes ?? true,
      semanticIndexOffset: semanticIndexOffset ?? 0,
      // semanticIndexCallback:
    ),
    listFixed: (value) => SliverChildListDelegate.fixed(
      children.getChildren(context),
      addAutomaticKeepAlives: addAutomaticKeepAlives ?? true,
      addRepaintBoundaries: addRepaintBoundaries ?? true,
      addSemanticIndexes: addSemanticIndexes ?? true,
      semanticIndexOffset: semanticIndexOffset ?? 0,
      // semanticIndexCallback:
    ),
  );
}