ImplicitlyAnimatedWidget constructor Null safety

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

Initializes fields for subclasses.

The curve and duration arguments must not be null.

Implementation

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