Animator<T> constructor

Animator<T>({
  1. required ValueGetter<T> getter,
  2. required ValueSetter<T> setter,
  3. Curve? curve,
})

Animates the value read by getter and written by setter, along curve unless animate names another.

Implementation

Animator({required this.getter, required this.setter, this.curve}) {
  _CancelDisposer(cancel).disposeBy(this);
}