tween<T> method
MovieScene
tween<T>(
- MovieTweenPropertyType property,
- Animatable<
T> tween, { - Curve? curve,
- Duration shiftBegin = Duration.zero,
- Duration shiftEnd = Duration.zero,
Animates a property and returns the implicitly created scene. The scene can be used to add further properties to the scene or to add further scenes to the movie.
Implementation
MovieScene tween<T>(
/// Property to animate
MovieTweenPropertyType property,
//// Tween that describes the property animation
Animatable<T> tween, {
/// Custom curve for this property.
Curve? curve,
/// Shift the begin time by this amount.
Duration shiftBegin = Duration.zero,
/// Shift the end time by this amount.
Duration shiftEnd = Duration.zero,
}) {
assert(begin + shiftBegin >= Duration.zero, 'Effective begin must be > 0');
items.add(_SceneItem(
property: property,
tween: tween,
curve: curve,
shiftBegin: shiftBegin,
shiftEnd: shiftEnd,
));
return this;
}