SubAnimator<T> constructor
SubAnimator<T> ({
- required Animation<
T> animation, - required SubValueBuild<
T> builder, - ValueChanged<
T> ? listener, - 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);