NikuListView.separated constructor
NikuListView.separated({
- Key? key,
- Axis? scrollDirection,
- bool? reverse,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool? shrinkWrap,
- NikuEdgeInsets? padding,
- IndexedWidgetBuilder? itemBuilder,
- IndexedWidgetBuilder? separatorBuilder,
- Color? separatorColor,
- double? sepearatorHeight,
- int itemCount = 0,
- bool? addAutomaticKeepAlives,
- bool? addRepaintBoundaries,
- bool? addSemanticIndexes,
- double? cacheExtent,
- DragStartBehavior? dragStartBehavior,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
- String? restorationId,
- Clip? clipBehavior,
Implementation
factory NikuListView.separated({
Key? key,
Axis? scrollDirection,
bool? reverse,
ScrollController? controller,
bool? primary,
ScrollPhysics? physics,
bool? shrinkWrap,
NikuEdgeInsets? padding,
IndexedWidgetBuilder? itemBuilder,
IndexedWidgetBuilder? separatorBuilder,
Color? separatorColor,
double? sepearatorHeight,
int itemCount = 0,
bool? addAutomaticKeepAlives,
bool? addRepaintBoundaries,
bool? addSemanticIndexes,
double? cacheExtent,
DragStartBehavior? dragStartBehavior,
ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
String? restorationId,
Clip? clipBehavior,
}) =>
NikuListView(
key: key,
type: NikuListViewType.separated,
scrollDirection: scrollDirection,
reverse: reverse,
controller: controller,
primary: primary,
physics: physics,
shrinkWrap: shrinkWrap,
padding: padding,
itemBuilder: itemBuilder,
separatorBuilder: separatorBuilder ??
(context, index) => Divider(
key: key,
color: separatorColor,
height: sepearatorHeight,
),
itemCount: itemCount,
addAutomaticKeepAlives: addAutomaticKeepAlives,
addRepaintBoundaries: addRepaintBoundaries,
addSemanticIndexes: addSemanticIndexes,
cacheExtent: cacheExtent,
dragStartBehavior: dragStartBehavior,
keyboardDismissBehavior: keyboardDismissBehavior,
restorationId: restorationId,
clipBehavior: clipBehavior,
);