StatusTransitionWidget constructor Null safety

const StatusTransitionWidget(
  1. {Key? key,
  2. required Animation<double> animation}
)

Initializes fields for subclasses.

The animation argument must not be null.

Implementation

const StatusTransitionWidget({
  Key? key,
  required this.animation,
}) : assert(animation != null),
     super(key: key);