ScalarKeyframe constructor - ScalarKeyframe - animation library - Dart API
ScalarKeyframe
ScalarKeyframe constructor
- double value,
- Duration duration
Constructs a ScalarKeyframe from the value and offset.
-
valueScalar keyframe value. -
durationRelative animation duration for reaching the keyframe value. Negative duration value gets clamped to 0.
Implementation
factory ScalarKeyframe(double value, Duration duration) => $prototype.create(value, duration);