core/models/layers/layer_keyframe library
Classes
- LayerKeyframe
- A layer's placement at one point of its time range.
- LayerKeyframeEffect
- A loop animation a layer plays between two of its keyframes, see LayerKeyframe.effects.
- LayerPlacement
- Where a layer sits, how big it is, how far it is turned and how opaque it is at one moment, measured like Layer.offset, Layer.scale, Layer.rotation and Layer.opacity.
Constants
- kLayerKeyframeTolerance → const Duration
- How far apart a playback position and a keyframe may be for the keyframe to count as at that position.
Functions
-
layerKeyframeEffects(
List< LayerKeyframe> keyframes, {required Duration origin}) → List<LayerKeyframeEffect> -
The LayerKeyframe.effects of
keyframes, each placed on the stretch to the next keyframe with its cycle fitted to it. -
layerKeyframePlacementAt(
List< LayerKeyframe> keyframes, Duration time) → LayerPlacement? -
The placement
keyframesgive a layertimeafter the time they are measured from (see LayerKeyframe.time), ornullwhen there are none. -
sortLayerKeyframes(
Iterable< LayerKeyframe> keyframes) → List<LayerKeyframe> -
keyframessorted by LayerKeyframe.time, as a new list.