ImplicitlyAnimatedWidget constructor Null safety

const ImplicitlyAnimatedWidget(
  1. {Key? key,
  2. Curve curve,
  3. required Duration duration,
  4. VoidCallback? onEnd}
)

Initializes fields for subclasses.

The curve and duration arguments must not be null.

Implementation

const ImplicitlyAnimatedWidget({
  Key? key,
  this.curve = Curves.linear,
  required this.duration,
  this.onEnd,
}) : assert(curve != null),
     assert(duration != null),
     super(key: key);