keyframeAnimation method
T
keyframeAnimation({
- Listenable? trigger,
- required List<
KeyframeTrack> timeline, - required KeyframeStyleBuilder<
S, T> styleBuilder,
Creates a keyframe animation. It will animate through the given timeline.
Implementation
T keyframeAnimation({
Listenable? trigger,
required List<KeyframeTrack> timeline,
required KeyframeStyleBuilder<S, T> styleBuilder,
}) {
return animate(
KeyframeAnimationConfig<S>(
trigger: trigger,
timeline: timeline,
styleBuilder: (values, style) => styleBuilder(values, style as T),
initialStyle: this,
),
);
}