SliverReorderableList constructor Null safety
- {Key? key,
- required IndexedWidgetBuilder itemBuilder,
- ChildIndexGetter? findChildIndexCallback,
- required int itemCount,
- required ReorderCallback onReorder,
- void onReorderStart( )?,
- void onReorderEnd( )?,
- double? itemExtent,
- Widget? prototypeItem,
- ReorderItemProxyDecorator? proxyDecorator}
Creates a sliver list that allows the user to interactively reorder its items.
The itemCount must be greater than or equal to zero.
Implementation
const SliverReorderableList({
super.key,
required this.itemBuilder,
this.findChildIndexCallback,
required this.itemCount,
required this.onReorder,
this.onReorderStart,
this.onReorderEnd,
this.itemExtent,
this.prototypeItem,
this.proxyDecorator,
}) : assert(itemCount >= 0),
assert(
itemExtent == null || prototypeItem == null,
'You can only pass itemExtent or prototypeItem, not both',
);