OverlayMorphState class

Immutable snapshot of the overlay carousel morph state.

State = f(overlayProgress, expandProgress, currentIndex).

Annotations

Constructors

OverlayMorphState({required double overlayProgress, required double expandProgress, required OverlayPhase phase, int currentIndex = 0, int itemCount = 0, Object? selectedItem, Rect? originRect, Rect? cardRect, Rect? fullscreenRect, bool isDragging = false, bool isAnimating = false, double velocity = 0.0, double horizontalDragOffset = 0.0})
const

Properties

canSwipeHorizontally bool
no setter
cardRect Rect?
Centered card rect (computed from screen size and fractions).
final
currentIndex int
final
currentRect Rect?
Interpolated rect for the active card at the current progress.
no setter
expandProgress double
Vertical expand/collapse progress: 0.0 = card, 1.0 = fullscreen.
final
fullscreenRect Rect?
Full-screen target rect.
final
hashCode int
The hash code for this object.
no setteroverride
hasSelection bool
no setter
horizontalDragOffset double
Live horizontal drag displacement during carousel swipe (pixels).
final
isAnimating bool
final
isDragging bool
final
isIdle bool
no setter
itemCount int
final
originRect Rect?
Global rect of the tapped source widget.
final
overlayProgress double
Overlay appear/disappear progress: 0.0 = hidden, 1.0 = card visible.
final
phase OverlayPhase
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedItem Object?
Data of the originally tapped item. Null when idle.
final
velocity double
final

Methods

copyWith({double? overlayProgress, double? expandProgress, OverlayPhase? phase, int? currentIndex, int? itemCount, Object? selectedItem, bool clearSelection = false, Rect? originRect, bool clearOriginRect = false, Rect? cardRect, bool clearCardRect = false, Rect? fullscreenRect, bool? isDragging, bool? isAnimating, double? velocity, double? horizontalDragOffset}) OverlayMorphState
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