animation method
Applies an animation
to state changes in the descendants of this widget.
See also:
- Animated for the widget that implements this functionality.
Implementation
@widgetFactory
Widget animation(
AnimationSpec animation, {
Object? value = Animated.alwaysAnimateValue,
}) {
return Animated(
animation: animation,
value: value,
child: this,
);
}