TweenSequenceItem<T> constructor

const TweenSequenceItem<T>({@required Animatable<T> tween, @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);