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

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

Constructors

SliverExpandableChildDelegate({required List<S> sectionList, required ExpandableItemBuilder itemBuilder, ExpandableListController? controller, ExpandableSeparatorBuilder? separatorBuilder, ExpandableHeaderBuilder? headerBuilder, ExpandableSectionBuilder? sectionBuilder, bool sticky = true, bool overlapsContent = false, 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
overlapsContent bool
Whether the header should be drawn on top of the content instead of before.
final
removeItemsOnCollapsed bool
if value is true, when section is collapsed, all child widget in section widget will be removed.
final
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. See also:
getter/setter pair
sectionList List<S>
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

Static Methods

buildDefaultContent(BuildContext context, ExpandableSectionContainerInfo containerInfo) Widget
By default, build a Column widget for layout all children's size.