PagingListView<PageKeyType, ItemType> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BaseWidget<
PageKeyType, ItemType> - PagingListView
Constructors
-
PagingListView({Key? key, bool isEnablePullToRefresh = true, EdgeInsets padding = EdgeInsets.zero, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController? controller, bool? primary, ScrollPhysics? physics, bool shrinkWrap = false, bool addRepaintBoundaries = true, bool addAutomaticKeepAlives = true, bool addSemanticIndexes = true, double? cacheExtent, DragStartBehavior dragStartBehavior = DragStartBehavior.start, ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual, SemanticIndexCallback? semanticIndexCallback, double? itemExtent, int invisibleItemsThreshold = 3, WidgetBuilder? newPageErrorIndicatorBuilder, WidgetBuilder? newPageCompletedIndicatorBuilder, NewPageWidgetBuilder? newPageProgressIndicatorBuilder, AddItemWidgetBuilder<
ItemType> ? addItemBuilder, required PagedChildBuilderDelegate<ItemType> builderDelegate, required DataSource<PageKeyType, ItemType> pageDataSource, WidgetBuilder? emptyBuilder, WidgetBuilder? loadingBuilder, ErrorBuilder? errorBuilder, WidgetBuilder? refreshBuilder}) -
const
-
PagingListView.separated({Key? key, bool isEnablePullToRefresh = true, EdgeInsets padding = EdgeInsets.zero, required SeparatorBuilder<
ItemType> separatorBuilder, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController? controller, bool? primary, ScrollPhysics? physics, bool shrinkWrap = false, bool addRepaintBoundaries = true, bool addAutomaticKeepAlives = true, bool addSemanticIndexes = true, double? cacheExtent, DragStartBehavior dragStartBehavior = DragStartBehavior.start, ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual, SemanticIndexCallback? semanticIndexCallback, double? itemExtent, int invisibleItemsThreshold = 3, WidgetBuilder? newPageErrorIndicatorBuilder, WidgetBuilder? newPageCompletedIndicatorBuilder, NewPageWidgetBuilder? newPageProgressIndicatorBuilder, AddItemWidgetBuilder<ItemType> ? addItemBuilder, required PagedChildBuilderDelegate<ItemType> builderDelegate, required DataSource<PageKeyType, ItemType> pageDataSource, WidgetBuilder? emptyBuilder, WidgetBuilder? loadingBuilder, ErrorBuilder? errorBuilder, WidgetBuilder? refreshBuilder}) -
const
Properties
- addAutomaticKeepAlives → bool
-
final
-
addItemBuilder
→ AddItemWidgetBuilder<
ItemType> ? -
final
- addRepaintBoundaries → bool
-
final
- addSemanticIndexes → bool
-
final
-
builderDelegate
→ PagedChildBuilderDelegate<
ItemType> -
Signature for a function that creates a widget for item
finalinherited
- cacheExtent → double?
-
final
- controller → ScrollController?
-
final
- dragStartBehavior → DragStartBehavior
-
final
- emptyBuilder → WidgetBuilder?
-
Signature for a function that creates a widget empty
finalinherited
- errorBuilder → ErrorBuilder?
-
Signature for a function that creates a widget Error
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- invisibleItemsThreshold → int
-
final
- isEnablePullToRefresh → bool
-
final
- itemExtent → double?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardDismissBehavior → ScrollViewKeyboardDismissBehavior
-
final
- loadingBuilder → WidgetBuilder?
-
Signature for a function that creates a widget loading
finalinherited
- newPageCompletedIndicatorBuilder → WidgetBuilder?
-
final
- newPageErrorIndicatorBuilder → WidgetBuilder?
-
final
- newPageProgressIndicatorBuilder → NewPageWidgetBuilder?
-
final
- padding → EdgeInsets
-
final
-
pageDataSource
→ DataSource<
PageKeyType, ItemType> -
DataSource for current ScrollView
ListView - GridView
finalinherited - physics → ScrollPhysics?
-
In Android pull to refresh only work
if total height height < height of screen => physics = AlwaysScrollableScrollPhysics
if total height of item > height of screen => physics = BouncingScrollPhysics || AlwaysScrollableScrollPhysics
default physics = AlwaysScrollableScrollPhysics
final
- primary → bool?
-
final
- refreshBuilder → WidgetBuilder?
-
finalinherited
- reverse → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollDirection → Axis
-
final
- semanticIndexCallback → SemanticIndexCallback?
-
final
-
separatorBuilder
→ SeparatorBuilder<
ItemType> ? -
Signature for a function that creates a widget for separator item
finalinherited
- shrinkWrap → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → PagingListViewState< PageKeyType, ItemType> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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, int wrapWidth = 65}) → 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