SliverExpandableChildDelegate<T, S extends ExpandableListSection<T>> class

A delegate that supplies children for SliverExpandableList using a builder callback.

Constructors

SliverExpandableChildDelegate({required List sectionList, required ExpandableItemBuilder itemBuilder, ExpandableListController? controller, ExpandableSeparatorBuilder? separatorBuilder, ExpandableHeaderBuilder? headerBuilder, ExpandableSectionBuilder? sectionBuilder, bool sticky = true, bool removeItemsOnCollapsed = true, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true})

Properties

controller ExpandableListController?
expandable list controller, listen sticky header index scroll offset etc.
getter/setter pair
delegate SliverChildBuilderDelegate
sliver list builder
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headerBuilder ExpandableHeaderBuilder?
build section header
final
itemBuilder ExpandableItemBuilder
build section item
final
removeItemsOnCollapsed bool
if value is true, when section is collapsed, all child widget in section widget will be removed.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sectionBuilder ExpandableSectionBuilder?
use this return a custom content widget, when use this builder, headerBuilder is invalid.
getter/setter pair
sectionList List
data source
final
sectionRealIndexes List<int>
store section real index in SliverList, format: sectionList index, SliverList index.
final
separatorBuilder ExpandableSeparatorBuilder?
build header and item separator, if pass null, SliverList has no separators. default null.
final
sticky bool
whether to sticky the header.
final

Methods

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