Animate class Null safety

Object exposed by the builder method of the OnAnimationBuilder. It is used to set tweens explicitly or implicitly.

     child: OnAnimationBuilder(
       listenTo: animation,
       builder: (animate) {
         //Implicit animation
         final width = animate(selected ? 200.0 : 100.0);

         // Explicit animation
         final height = animate.fromTween((_)=> Tween(200.0, 100.0));

         return Container(
           width: width,
           height: height,
           child: const FlutterLogo(size: 75),


hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shouldAlwaysRebuild bool
read / write


call<T>(T? value, [String name = '']) → T?
Implicitly animate to the given value
fromTween<T>(Tween<T?> fn(T? currentValue), [String? name]) → T?
Set animation explicitly by defining the Tween. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
setCurve(Curve curve) Animate
Set the curve for this tween. [...]
setReverseCurve(Curve curve) Animate
Set the curve for this tween. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]