CollectionOptions class abstract
Root base for all collection option types.
- Implementers
Constructors
- CollectionOptions({bool shrinkWrap = false, bool reverse = false, Axis scrollDirection = Axis.vertical, AlwaysScrollableScrollPhysics? scrollPhysics, ScrollBehavior? scrollBehavior, int loadMoreTriggerItemDistance = 2})
-
const
- CollectionOptions.defaults()
-
Handy defaults for callers that want a zero-arg super().
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- loadMoreTriggerItemDistance → int
-
final
- reverse → bool
-
Shared across all collection widgets.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollBehavior → ScrollBehavior?
-
final
- scrollDirection → Axis
-
final
- scrollPhysics → AlwaysScrollableScrollPhysics?
-
final
- shrinkWrap → bool
-
final
Methods
-
asOrThrow<
T extends CollectionOptions> () → T -
assertCorrectType(
CollectionWidgetStateType type) → void - Runtime safety: ensure the options instance matches the widget state type.
-
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