SectionAdapterMixin mixin

Implemented types

Properties

crossAxisExtent double
列表交叉轴大小
getter/setter pairoverride
hashCode int
The hash code for this object.
no setterinherited
mainAxisExtent double
列表主轴大小
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalCount int
no setter

Methods

buildItem(BuildContext context, int position) Widget
构建item 组件,内部使用,通常情况下子类不需要重写这个
override
createExtraSection(int section, int numberOfItems, int position) SectionInfo
override
createSection(int section, int numberOfItems, int position) SectionInfo
创建sectionInfo
override
getFooter(BuildContext context) Widget
getHeader(BuildContext context) Widget
getItem(BuildContext context, IndexPath indexPath) Widget
获取item
getItemCount() int
item总数,内部使用,通常情况下子类不需要重写这个
override
getSectionFooter(BuildContext context, int section) Widget
getSectionHeader(BuildContext context, int section) Widget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyDataChange() bool
数据变了
override
numberOfItems(int section) int
每个section的item数量
numberOfSections() int
section总数
onSectionHeaderStick(int section) → void
header 吸顶了
override
sectionInfoForPosition(int position) SectionInfo?
通过position获取对应的sectionInfo
override
sectionInfoForSection(int section) SectionInfo?
获取对应section
override
shouldExistFooter() bool
类似UITableView.tableFooterView
shouldExistHeader() bool
类似UITableView.tableHeaderView
shouldExistSectionFooter(int section) bool
section 底部
shouldExistSectionHeader(int section) bool
section 头部
shouldSectionHeaderStick(int section) bool
是否需要吸顶悬浮
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited