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

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.
read / write
delegate SliverChildBuilderDelegate
sliver list builder
read / write
hashCode int
The hash code for this object.
read-onlyinherited
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.
@Deprecated("unused property")final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
sectionBuilder ExpandableSectionBuilder?
use this return a custom content widget, when use this builder, headerBuilder is invalid. See also:
read / write
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 non-existent 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.