RubberAnimationController class

Inheritance
Mixed in types

Constructors

RubberAnimationController({AnimationControllerValue? lowerBoundValue, AnimationControllerValue? halfBoundValue, AnimationControllerValue? upperBoundValue, bool dismissable = false, double? initialValue, Duration? duration, String? debugLabel, AnimationBehavior animationBehavior = AnimationBehavior.normal, AnimationPadding? padding, SpringDescription? springDescription, required TickerProvider vsync})
Creates an animation controller.

Properties

animationBehavior AnimationBehavior
The behavior of the controller when AccessibilityFeatures.disableAnimations is true.
final
animationState ValueNotifier<AnimationState>
getter/setter pair
debugLabel String?
A label that is used in the toString output. Intended to aid with identifying animation controller instances in debug output.
final
dismissable bool
Tells if the bottomsheet has to remain closed after drag down
final
duration Duration?
The length of time this animation should last.
getter/setter pair
halfBound double?
no setter
halfBoundValue AnimationControllerValue?
The value at which this animation is half expanded
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height double
no getter
initialValue double?
Initial value of the controller in percentage
getter/setter pair
isAnimating bool
Whether this animation is currently animating in either the forward or reverse direction.
no setter
isCompleted bool
Whether this animation is stopped at the end.
no setterinherited
isDismissed bool
Whether this animation is stopped at the beginning.
no setterinherited
lastElapsedDuration Duration?
The amount of time that has passed between the time the animation started and the most recent tick of the animation.
no setter
lowerBound double?
no setter
lowerBoundValue AnimationControllerValue
The value at which this animation is collapsed.
getter/setter pair
padding AnimationPadding
Pads the animation using value.clamp
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
springDescription ← dynamic
no getter
status AnimationStatus
Tells if the animations is running(forward) or completed
no setteroverride
upperBound double?
no setter
upperBoundValue AnimationControllerValue
The value at which this animation is expanded.
getter/setter pair
value double
The current value of the animation.
getter/setter pairoverride-getter
velocity double
The rate of change of value per second.
no setter
view Animation<double>
Returns an Animation<double> for this animation controller, so that a pointer to this object can be passed around without allowing users of that pointer to mutate the RubberAnimationController state.
no setter
visibility ValueNotifier<bool>
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Calls the listener every time the value of the animation changes.
inherited
addStatusListener(AnimationStatusListener listener) → void
Calls listener every time the status of the animation changes.
inherited
animateTo({double? from, required double to, Curve curve = Curves.easeOut}) TickerFuture
animateWith(Simulation simulation) TickerFuture
Drives the animation according to the given simulation.
clearListeners() → void
Removes all listeners added with addListener.
inherited
clearStatusListeners() → void
Removes all listeners added with addStatusListener.
inherited
collapse({double? from}) TickerFuture
didRegisterListener() → void
This implementation ignores listener registrations.
inherited
didUnregisterListener() → void
This implementation ignores listener registrations.
inherited
dispose() → void
Release the resources used by this object. The object is no longer usable after this method is called.
override
drive<U>(Animatable<U> child) Animation<U>
Chains a Tween (or CurveTween) to this Animation.
inherited
expand({double? from}) TickerFuture
fling(double? from, double? to, {double velocity = 1.0, AnimationBehavior? animationBehavior}) TickerFuture
getBoundFromState(AnimationState state) double?
halfExpand({double? from}) TickerFuture
launchTo(double from, double? to, {double velocity = 1.0, AnimationBehavior? animationBehavior}) TickerFuture
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Calls all the listeners.
inherited
notifyStatusListeners(AnimationStatus status) → void
Calls all the status listeners.
inherited
pixelValuesToPercentage() → void
removeListener(VoidCallback listener) → void
Stop calling the listener every time the value of the animation changes.
inherited
removeStatusListener(AnimationStatusListener listener) → void
Stops calling the listener every time the status of the animation changes.
inherited
reset() → void
Sets the controller's value to initialValue or lowerBound, stopping the animation (if in progress), and resetting to its beginning point, or collapsed state.
resync(TickerProvider vsync) → void
Recreates the Ticker with the new TickerProvider.
setVisibility(bool show) → void
stop({bool canceled = true}) → void
Stops running this animation.
toString() String
A string representation of this object.
inherited
toStringDetails() String
Provides a string describing the status of this object, but not including information about the object itself.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited