animate method Null safety

Animation<T> animate (
  1. Animation<double> parent
)

Returns a new Animation that is driven by the given animation but that takes on values determined by this object.

Essentially this returns an Animation that automatically applies the evaluate method to the parent's value.

See also:

Implementation

Animation<T> animate(Animation<double> parent) {
  return _AnimatedEvaluation<T>(parent, this);
}