CardCarouselState class
Immutable snapshot of the carousel's complete state.
State = f(verticalProgress, currentIndex) — no implicit UI state.
- Annotations
Constructors
Properties
- canSwipeHorizontally → bool
-
Whether horizontal swiping is allowed in the current state.
no setter
- currentIndex → int
-
Currently active card index.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isAnimating → bool
-
Whether a programmatic animation is in flight.
final
- isDragging → bool
-
Whether the user is actively dragging.
final
- itemCount → int
-
Total number of items.
final
- phase → CardPhase
-
Discrete phase of the state machine.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- velocity → double
-
Current drag velocity (normalized).
final
- verticalProgress → double
-
Vertical morph progress: 0.0 = card mode, 1.0 = fullscreen.
final
Methods
-
copyWith(
{double? verticalProgress, int? currentIndex, CardPhase? phase, bool? isDragging, bool? isAnimating, double? velocity, int? itemCount}) → CardCarouselState -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override