RefreshableSliverListView<T> class

An implementation of RefreshableDataView, which displays data in SliverList with CustomScrollView, only for backward compatibility.

Inheritance

Constructors

RefreshableSliverListView({Key? key, required List<T> data, required Future<List<T>> getData(), UpdatableDataViewSetting<T> setting = const UpdatableDataViewSetting(), ScrollController? scrollController, required Widget itemBuilder(BuildContext, int, T), UpdatableDataViewExtraWidgets? extra, Widget? separator, bool? useOverlapInjector = false})
This constructor is the same as RefreshableDataView.sliverListView, only for backward compatibility.
const

Properties

crossAxisCount int?
The crossAxisCount for MasonryGridView and SliverMasonryGrid, defaults to 2.
finalinherited
crossAxisSpacing double?
The crossAxisSpacing for MasonryGridView and SliverMasonryGrid, defaults to 0.0.
finalinherited
customViewBuilder → (Widget Function(BuildContext context, RefreshableDataView<T> view)?)
The customViewBuilder for UpdatableDataViewStyle.customView.
finalinherited
data List<T>
The list of data.
finalinherited
extra UpdatableDataViewExtraWidgets?
The extra widgets around ScrollView.
finalinherited
getData Future<List<T>> Function()
The function to get list data.
finalinherited
gridDelegate SliverGridDelegate?
The gridDelegate for GridView and SliverGrid, defaults to SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2).
finalinherited
hashCode int
The hash code for this object.
no setterinherited
itemBuilder Widget Function(BuildContext, int, T)
The itemBuilder for ScrollView.
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainAxisSpacing double?
The mainAxisSpacing for MasonryGridView and SliverMasonryGrid, defaults to 0.0.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
The controller for ScrollView.
finalinherited
separator Widget?
The separator for ListView and SliverList.
finalinherited
setting UpdatableDataViewSetting<T>
The display and behavior setting.
finalinherited
style UpdatableDataViewStyle
The data display style.
finalinherited
useOverlapInjector bool?
The switcher to use SliverOverlapInjector in the top of sliver widgets, defaults to false.
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() RefreshableDataViewState<T>
Creates the mutable state for this widget at a given 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