mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Specs: Add runloop.md stub. Specs: Add animation.md stub. Review URL: https://codereview.chromium.org/824773002
526 B
526 B
Animation API
dictionary EasingFunctionSettings {
Float duration; // required
Callback? completionCallback = null;
}
abstract class EasingFunction {
abstract constructor (EasingFunctionSettings settings);
abstract Float getFactor(Float time);
// calls completionCallback if time >= duration
// then returns a number ostensibly in the range 0.0 to 1.0
// (but it could in practice go outside this range, e.g. for
// animation styles that overreach then come back)
}