SliverAnimatedBoxMetrics class
Metrics for a SliverAnimatedBoxWidgetBuilder which allow it to animate its Widgets when the scroll position changes.
Constructors
- SliverAnimatedBoxMetrics({required double scrollExtent, required double scrollOffset, required double viewportExtent, double? previousBoxExtent})
- Creates the metrics for a SliverAnimatedBoxWidgetBuilder.
Properties
- animationProgress → double
-
The percentage of scrolling the user has done to complete the animation.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- previousBoxExtent → double?
-
The extent of the animated box during the last layout, in the scrolling
axis.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollExtent → double
-
The amount of scrolling the user has to do to completely scroll the
animated box of the viewport.
final
- scrollOffset → double
-
The progress the user has made to scroll the animated box off the
viewport, in terms of scrollExtent.
final
- scrollProgress → double
-
The percentage of scrolling the user has done to scroll the animated box
off the viewport.
no setter
- viewportExtent → double
-
The size of the viewport in the scroll direction.
final
Methods
-
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