inSliverList method
SliverList
inSliverList(
{ - void onItemClick(
- BuildContext context,
- int index
)?,
- int? findChildIndexCallback(
- Key
)?,
- int? childCount,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- int semanticIndexOffset = 0,
})
Implementation
SliverList inSliverList({
void Function(BuildContext context, int index)? onItemClick,
int? Function(Key)? findChildIndexCallback,
int? childCount,
bool addAutomaticKeepAlives = true,
bool addRepaintBoundaries = true,
bool addSemanticIndexes = true,
int semanticIndexOffset = 0,
}) {
return SliverList(
delegate: SliverChildBuilderDelegate(
(context, index) => action(onClick: () => onItemClick?.call(context, index)),
findChildIndexCallback: findChildIndexCallback,
childCount: childCount,
addAutomaticKeepAlives: addAutomaticKeepAlives,
addRepaintBoundaries: addRepaintBoundaries,
addSemanticIndexes: addSemanticIndexes,
semanticIndexOffset: semanticIndexOffset,
));
}