ListViewResourceWidget<T> class

Inheritance

Constructors

ListViewResourceWidget({Key? key, bool useSliver = false, required Resource<List<T>> resource, required Widget? loadingTile, required Widget tileMapper(T data), Future<void> refresh()?, Widget? emptyWidget, EdgeInsets? padding, List<Widget>? topWidgets, Widget errorWidget(AppException e)?, 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(int index, Widget tile)?, String? textTryAgain})
const
ListViewResourceWidget.reorderable({Key? key, required Resource<List<T>> resource, required Widget loadingTileBuilder()?, required Widget tileMapper(T data), required ReorderCallback? onReorder, Future<void> refresh()?, Widget? emptyWidget, List<Widget>? topWidgets, Widget errorWidget(AppException e)?, EdgeInsets? padding, ScrollController? controller, Axis scrollDirection = Axis.vertical, bool shrinkWrap = false, int loadingTileQuantity = 2, Widget separatorBuilder(int index, Widget tile)?, 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})
const
ListViewResourceWidget.sliver({Key? key, bool useSliver = true, required Resource<List<T>> resource, required Widget? loadingTile, required Widget tileMapper(T data), Future<void> refresh()?, Widget separatorBuilder(int index, Widget tile)?, Widget? emptyWidget, List<Widget>? topWidgets, Widget errorWidget(AppException e)?, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, int loadingTileQuantity = 2, String? textTryAgain})
const

Properties

addAutomaticKeepAlives bool
final
addRepaintBoundaries bool
final
addSemanticIndexes bool
final
cacheExtent double?
final
clipBehavior Clip
final
controller ScrollController?
final
dragStartBehavior DragStartBehavior
final
emptyWidget Widget?
final
errorWidget → (Widget Function(AppException e)?)
final
hashCode int
The hash code for this object.
no setterinherited
itemExtent double?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardDismissBehavior ScrollViewKeyboardDismissBehavior
final
loadingTile Widget?
final
loadingTileBuilder → (Widget Function()?)
final
loadingTileQuantity int
final
onReorder ReorderCallback?
final
padding EdgeInsets?
final
physics ScrollPhysics?
final
primary bool?
final
refresh → (Future<void> Function()?)
final
reorderableList bool
final
resource Resource<List<T>>
final
restorationId String?
final
reverse bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollDirection Axis
final
semanticChildCount int?
final
separatorBuilder → (Widget Function(int index, Widget tile)?)
final
shrinkWrap bool
final
textTryAgain String?
final
tileMapper Widget Function(T data)
final
topWidgets List<Widget>?
final
useSliver bool
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited