SmartListView class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SmartListView
- Available extensions
Constructors
- SmartListView({Key? key, required IndexedWidgetBuilder itemBuilder, required int itemCount, double dividerThickness = 0, Color dividerColor = Colors.transparent, double? cacheExtent, bool dividerEnd = false, bool dividerStart = false, Axis scrollDirection = Axis.vertical, IndexedWidgetBuilder? separatorBuilder, ScrollPhysics? physics, bool shrinkWrap = false, ScrollController? scrollController, EdgeInsetsGeometry padding = EdgeInsets.zero, bool reverse = false, double? itemExtent, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, ChildIndexGetter? findChildIndexCallback, bool isSliver = false, bool useColumnRow = false, ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.onDrag})
-
const
Properties
- addAutomaticKeepAlives → bool
-
final
- addRepaintBoundaries → bool
-
final
- cacheExtent → double?
-
缓存高度
final
- dividerColor → Color
-
分割线颜色
final
- dividerEnd → bool
-
是否包含开头分割线
final
- dividerStart → bool
-
是否包含结尾分割线
final
- dividerThickness → double
-
分割线高度
final
- findChildIndexCallback → ChildIndexGetter?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSliver → bool
-
final
- itemBuilder → IndexedWidgetBuilder
-
item渲染器
final
- itemCount → int
-
数据个数
final
- itemExtent → double?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardDismissBehavior → ScrollViewKeyboardDismissBehavior
-
final
- padding → EdgeInsetsGeometry
-
final
- physics → ScrollPhysics?
-
滑动模式
final
- reverse → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
滑动控制器
final
- scrollDirection → Axis
-
滑动方向
final
- separatorBuilder → IndexedWidgetBuilder?
-
分割线渲染器
final
- shrinkWrap → bool
-
是否计算item尺寸
final
- useColumnRow → bool
-
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
getIndexedWidgetBuilder(
) → IndexedWidgetBuilder -
Available on SmartListView, provided by the SmartListViewExtension extension
-
getItemCount(
int itemCount, bool dividerStart, bool dividerEnd) → int -
Available on SmartListView, provided by the SmartListViewExtension extension
-
handleItemBuilder(
{required int index, required BuildContext context}) → Widget -
Available on SmartListView, provided by the SmartListViewExtension extension
-
hasDivider(
) → bool -
Available on SmartListView, provided by the SmartListViewExtension extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited