onComplete method

CAnimation<T, X> onComplete(
  1. void callback()
)

Fires once, when ALL currently-registered tweens have finished. If you call .property() again after completion, onComplete can fire again once the new tween(s) finish too.

Implementation

CAnimation<T, X> onComplete(void Function() callback) {
  _onCompleteCallbacks.add(callback);
  return this;
}