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.
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