ListViewResourceWidget<T>.reorderable constructor

const ListViewResourceWidget<T>.reorderable({
  1. Key? key,
  2. required Resource<List<T>> resource,
  3. required Widget loadingTileBuilder()?,
  4. required Widget tileMapper(
    1. T data
    ),
  5. required ReorderCallback? onReorder,
  6. Future<void> refresh()?,
  7. Widget? emptyWidget,
  8. List<Widget>? topWidgets,
  9. Widget errorWidget(
    1. AppException e
    )?,
  10. EdgeInsets? padding,
  11. ScrollController? controller,
  12. Axis scrollDirection = Axis.vertical,
  13. bool shrinkWrap = false,
  14. int loadingTileQuantity = 2,
  15. Widget separatorBuilder(
    1. int index,
    2. Widget tile
    )?,
  16. ScrollPhysics? physics,
  17. bool reverse = false,
  18. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  19. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  20. String? restorationId,
  21. double? cacheExtent,
  22. Clip clipBehavior = Clip.hardEdge,
  23. bool? primary,
  24. String? textTryAgain,
  25. 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);