animation method

  1. @widgetFactory
Widget animation(
  1. AnimationSpec animation, {
  2. Object? value = Animated.alwaysAnimateValue,
})

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,
  );
}