ListBuilder class
列表构建器组件
提供声明式构建列表项的通用模式,支持SliverList和ListView两种布局形式
- Available extensions
Constructors
- ListBuilder(Widget itemBuilder(BuildContext context, int index))
- 创建列表构建器
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemBuilder → Widget Function(BuildContext context, int index)
-
列表项构建器
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
listView(
{int count = 0, Widget gap = const SizedBox.shrink()}) → ListView -
Available on ListBuilder, provided by the ListBuilderWidget extension
构建常规列表布局 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sliverList(
{int count = 0, Widget gap = const SizedBox.shrink()}) → SliverList -
Available on ListBuilder, provided by the ListBuilderWidget extension
构建Sliver列表布局 -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited