SliverListConfig<T> class
- Inheritance
-
- Object
- LoadingMoreListConfig<
T> - SliverListConfig
Constructors
-
SliverListConfig.new({required LoadingMoreItemBuilder<
T> itemBuilder, required LoadingMoreBase<T> sourceList, LoadingMoreIndicatorBuilder? indicatorBuilder, SliverGridDelegate? gridDelegate, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, SemanticIndexCallback semanticIndexCallback = _kDefaultSemanticIndexCallback, int semanticIndexOffset = 0, int? childCount, bool autoLoadMore = true, ExtendedListDelegate? extendedListDelegate, LastChildLayoutType lastChildLayoutType = LastChildLayoutType.foot, EdgeInsetsGeometry? padding, double? itemExtent, bool autoRefresh = true, int childCountBuilder(int count)?, int getActualIndex(int int)?, bool? showNoMore, bool? lock, bool useProviderValue = false})
Properties
- actualLock → bool
-
no setter
- actualShowNoMore → bool
-
no setter
- addAutomaticKeepAlives → bool
-
final
- addRepaintBoundaries → bool
-
final
- addSemanticIndexes → bool
-
final
- autoLoadMore → bool
-
Whether to auto load more with the sourceList.
finalinherited
- autoRefresh → bool
-
Whether to auto refresh with the sourceList.
finalinherited
- childCount → int?
-
The total number of children this delegate can provide.
finalinherited
- childCountBuilder → int Function(int count)?
-
The builder to get child count,the input is
LoadingMoreBase.length
.finalinherited - defaultLock ↔ bool
-
getter/setter pair
- defaultShowNoMore ↔ bool
-
getter/setter pair
- extendedListDelegate → ExtendedListDelegate?
-
The delegate for WaterfallFlow or
ExtendedList
.finalinherited - getActualIndex → int Function(int int)?
-
finalinherited
- gridDelegate → SliverGridDelegate?
-
Set the gridDelegate if the config is for a grid view.
finalinherited
- hasError → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMore → bool
-
no setterinherited
- indicatorBuilder → LoadingMoreIndicatorBuilder?
-
The builder for each
IndicatorStatus
.finalinherited - isLoading → bool
-
no setterinherited
- isSliver → bool
-
no setterinherited
-
itemBuilder
→ LoadingMoreItemBuilder<
T> -
Builds widget from
item
andindex
.finalinherited - itemExtent → double?
-
If non-null, forces the children to have the given extent in the scroll
direction.
final
- lastChildLayoutType → LastChildLayoutType
-
Layout type of last child.
finalinherited
- lock → bool?
-
lock list to load data
if null, it will take from defaultLock.
default is true and if will be false if it begin to load
final
- padding → EdgeInsetsGeometry?
-
The amount of space by which to inset the child sliver.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticIndexCallback → SemanticIndexCallback
-
final
- semanticIndexOffset → int
-
final
- showNoMore → bool?
-
if null, it will take from defaultShowNoMore. it will be true only for last SliverListConfig
final
-
sourceList
→ LoadingMoreBase<
T> -
Source list based on the
LoadingMoreBase
.finalinherited - useProviderValue → bool
-
finalinherited
Methods
-
buildContent(
BuildContext context, LoadingMoreBase< T> ? source) → Widget -
override
-
buildErrorItem(
BuildContext context) → Widget? -
inherited
-
buildItem(
BuildContext context, int index) → Widget -
inherited
-
getExtendedListDelegate(
int childCount, {bool showNoMore = true}) → ExtendedListDelegate -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited