Animated constructor

const Animated({
  1. Key? key,
  2. AnimationSpec animation = const AnimationSpec(),
  3. Object? value = alwaysAnimateValue,
  4. required Widget child,
})

Creates a widget that applies an animation only to state changes in its descendants.

Implementation

const Animated({
  super.key,
  this.animation = const AnimationSpec(),
  this.value = alwaysAnimateValue,
  required this.child,
});