Effect constructor

Effect(
  1. EffectController controller, {
  2. void onComplete()?,
  3. ComponentKey? key,
})

Implementation

Effect(
  this.controller, {
  this.onComplete,
  super.key,
})  : removeOnFinish = true,
      _paused = false,
      _started = false,
      _finished = false {
  controller.onMount(this);
}