NyListView<T>.separated constructor
const
NyListView<T>.separated ({
- Key? key,
- required dynamic data(),
- dynamic transform(
- List<
T> data
- List<
- Function? child,
- NyChildBuilder<
T> ? childTyped, - NyChildBuilderWithIndex<
T> ? childTypedWithIndex, - NyChildBuilderWithHelper<
T> ? childTypedWithHelper, - required IndexedWidgetBuilder? separatorBuilder,
- Widget? empty,
- LoadingStyle? loadingStyle,
- String? stateName,
- Axis? scrollDirection,
- bool? reverse,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool? shrinkWrap,
- EdgeInsets? padding,
- double? itemExtent,
- Widget? prototypeItem,
- ChildIndexGetter? findChildIndexCallback,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- int? semanticChildCount,
- DragStartBehavior? dragStartBehavior,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
- String? restorationId,
- Clip? clipBehavior,
- Widget? header,
- dynamic sort(
- List<
T> items
- List<
Implementation
const NyListView.separated({
super.key,
required this.data,
this.transform,
this.child,
this.childTyped,
this.childTypedWithIndex,
this.childTypedWithHelper,
required this.separatorBuilder,
this.empty,
this.loadingStyle,
this.stateName,
this.scrollDirection,
this.reverse,
this.controller,
this.primary,
this.physics,
this.shrinkWrap,
this.padding,
this.itemExtent,
this.prototypeItem,
this.findChildIndexCallback,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
this.cacheExtent,
this.semanticChildCount,
this.dragStartBehavior,
this.keyboardDismissBehavior,
this.restorationId,
this.clipBehavior,
this.header,
this.sort,
}) : assert(
(child != null ? 1 : 0) +
(childTyped != null ? 1 : 0) +
(childTypedWithIndex != null ? 1 : 0) +
(childTypedWithHelper != null ? 1 : 0) ==
1,
'Exactly one child builder must be provided'),
kind = "separated",
crossAxisCount = null,
mainAxisSpacing = null,
crossAxisSpacing = null;