Transform constructor

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

Implementation

Transform(
  Mobject mobject, {
  Mobject? target,
  double runTime = DEFAULT_ANIMATION_RUN_TIME,
  RateFunc rateFunc = smooth,
  double lagRatio = DEFAULT_ANIMATION_LAG_RATIO,
}) : super(mobject,
          runTime: runTime, rateFunc: rateFunc, lagRatio: lagRatio) {
  if (target != null) {
    targetMobject = target;
  }
  initPathFunc();
}