animate method

Widget animate(
  1. Duration duration,
  2. Curve curve, {
  3. Key? key,
})

animated all properties before this method

Implementation

Widget animate(
  Duration duration,
  Curve curve, {
  Key? key,
}) =>
    _StyledInheritedAnimation(
      key: key,
      animation: _StyledAnimatedModel(duration: duration, curve: curve),
      child: this,
    );