ListViewResourceWidget<T>.reorderable constructor
const
ListViewResourceWidget<T>.reorderable ({
- Key? key,
- required Resource<
List< resource,T> > - required Widget loadingTileBuilder()?,
- required Widget tileMapper(
- T data
- required ReorderCallback? onReorder,
- Future<
void> refresh()?, - Widget? emptyWidget,
- List<
Widget> ? topWidgets, - Widget errorWidget()?,
- EdgeInsets? padding,
- ScrollController? controller,
- Axis scrollDirection = Axis.vertical,
- bool shrinkWrap = false,
- int loadingTileQuantity = 2,
- Widget separatorBuilder()?,
- ScrollPhysics? physics,
- bool reverse = false,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- String? restorationId,
- double? cacheExtent,
- Clip clipBehavior = Clip.hardEdge,
- bool? primary,
- String? textTryAgain,
- bool useSliver = false,
Implementation
const ListViewResourceWidget.reorderable({
Key? key,
required this.resource,
required this.loadingTileBuilder,
required this.tileMapper,
required this.onReorder,
this.refresh,
this.emptyWidget,
this.topWidgets,
this.errorWidget,
this.padding,
this.controller,
this.scrollDirection = Axis.vertical,
this.shrinkWrap = false,
this.loadingTileQuantity = 2,
this.separatorBuilder,
this.physics,
this.reverse = false,
this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
this.dragStartBehavior = DragStartBehavior.start,
this.restorationId,
this.cacheExtent,
this.clipBehavior = Clip.hardEdge,
this.primary,
this.textTryAgain,
this.useSliver = false,
}) : itemExtent = null,
semanticChildCount = null,
addAutomaticKeepAlives = true,
addRepaintBoundaries = true,
addSemanticIndexes = true,
reorderableList = onReorder != null,
loadingTile = null,
super(key: key);