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