Explicit that animates when asked.

Implicit Animation

SwiftUI and Flutter take a similar approach to animation.
In both frameworks, you specify parameters like duration, and curve.

In SwiftUI, you use the animate() modifier to handle implicit
animation.

Button

Tap

me

){

angle

+=

45

rotationEffect

degrees

angle

))

animation

easeIn

duration

))

Flutter includes widgets for implicit animation.
This simplifies animating common widgets.
Flutter names these widgets with the following format: AnimatedFoo.

For example: To rotate a button, use the AnimatedRotation class.
This animates the Transform.rotate widget.

Test in DartPad