SingleChildImplicitlyAnimatedModifier constructor

const SingleChildImplicitlyAnimatedModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. Curve curve = Curves.linear,
  5. required Duration duration,
  6. VoidCallback? onEnd,
})

Initializes fields for subclasses.

The curve and duration arguments must not be null.

Implementation

const SingleChildImplicitlyAnimatedModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.curve = Curves.linear,
  required this.duration,
  this.onEnd,
});