TweenSequenceItem<T> constructor Null safety

const TweenSequenceItem<T>(
  1. {required Animatable<T> tween,
  2. required double weight}
)

Construct a TweenSequenceItem.

The tween must not be null and weight must be greater than 0.0.

Implementation

const TweenSequenceItem({
  required this.tween,
  required this.weight,
}) : assert(tween != null),
     assert(weight != null),
     assert(weight > 0.0);