ScrollTransitionEvent class
Represents the scroll event for ScrollTransition.
Constructors
- ScrollTransitionEvent({required ScrollPhase phase, required double phaseOffsetFraction, required double screenOffsetFraction})
- Creates a ScrollTransitionEvent.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- phase → ScrollPhase
-
The current phase of the scroll animation on given Widget.
final
- phaseOffsetFraction → double
-
The current progress an element's phase is going through.
If phase is identity this value is 1.
If phase is topLeading, it goes from 0 towards 1 as it leaves the
screen.
If phase is bottomTrailing, it goes from 0 towards 1 as it enters the
screen.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenOffsetFraction → double
-
The current progress an element is going through the scrolling viewport.
If the item is near the center of the scroll view, the value tends towards
0.
As the item moves towards the ceiling of the scroll view, the value tends
towards 1. It clamps to 1 when the item is fully out of the scroll view.
As the item moves towards the floor of the scroll view, the value tends
towards -1. It clamps to -1 when the item is fully out of the scroll view.
final
Methods
-
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