TweenSequenceItem<T> constructor

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

Construct a TweenSequenceItem.

The weight must be greater than 0.0.

Implementation

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