Animation constructor

Animation(
  1. Mobject mobject, {
  2. double runTime = DEFAULT_ANIMATION_RUN_TIME,
  3. RateFunc rateFunc = smooth,
  4. double lagRatio = DEFAULT_ANIMATION_LAG_RATIO,
})

Implementation

Animation(
  this.mobject, {
  this.runTime = DEFAULT_ANIMATION_RUN_TIME,
  this.rateFunc = smooth,
  this.lagRatio = DEFAULT_ANIMATION_LAG_RATIO,
}) {
  name = getName();
}