ListOptions class abstract

Base options for list-like widgets (ListView, SliverList, AnimatedList).

Inheritance
Implementers

Constructors

ListOptions({ScrollBehavior? scrollBehavior, bool reverse = false, AlwaysScrollableScrollPhysics? scrollPhysics, Axis scrollDirection = Axis.vertical, int loadMoreTriggerItemDistance = 2, EdgeInsets? padding, bool shrinkWrap = false})
const
ListOptions.defaults()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
loadMoreTriggerItemDistance int
finalinherited
padding EdgeInsets?
final
reverse bool
Shared across all collection widgets.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollBehavior ScrollBehavior?
finalinherited
scrollDirection Axis
finalinherited
scrollPhysics AlwaysScrollableScrollPhysics?
finalinherited
shrinkWrap bool
finalinherited

Methods

asOrThrow<T extends CollectionOptions>() → T
inherited
assertCorrectType(CollectionWidgetStateType type) → void
Runtime safety: ensure the options instance matches the widget state type.
inherited
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