ReactiveAnimationController constructor

ReactiveAnimationController(
  1. ReactiveHost host, {
  2. AnimationController? ctrl,
  3. bool listen = false,
})

Implementation

ReactiveAnimationController(
  ReactiveHost host, {
  AnimationController? ctrl,
  bool listen = false,
})  : _listen = listen,
      super(host) {
  this.ctrl = ctrl ?? AnimationController(vsync: this);
  if (_listen) this.ctrl.addListener(_onChange);
}