AnimationDefaults constructor

const AnimationDefaults({
  1. Key? key,
  2. Duration? duration,
  3. Curve? curve,
  4. required Widget child,
})

Configures an AnimanionDefaults widget.

The duration and curve are optional, and default to 200ms and Curves.fastOutSlowIn respectively.

Implementation

const AnimationDefaults({
  super.key,
  this.duration,
  this.curve,
  required super.child,
});