SubAnimator<T> constructor

SubAnimator<T>({
  1. required Animation<T> animation,
  2. required SubValueBuild<T> builder,
  3. ValueChanged<T>? listener,
  4. bool initialize = false,
})

Subscribes to an Animation and returns its value.

  • The optional listener is called when the listenable notifies.
  • If initialize is true, then listener is also called once this Widget is built for the first time.

Implementation

SubAnimator({
  required Animation<T> animation,
  required super.builder,
  super.listener,
  super.initialize,
}) : super(listenable: animation);