mirror of
https://github.com/flutter/flutter.git
synced 2026-02-14 23:02:04 +08:00
Merge pull request #1000 from flutter/sethladd-patch-1
Add a doc comment for Performance's repeat()
This commit is contained in:
commit
2bc0a05959
@ -646,6 +646,8 @@ class Performance extends PerformanceView
|
||||
return _timeline.animateWith(force.release(progress, velocity));
|
||||
}
|
||||
|
||||
/// Starts running this animation in the forward direction, and
|
||||
/// restarts the animation when it completes.
|
||||
Future repeat({ double min: 0.0, double max: 1.0, Duration period }) {
|
||||
period ??= duration;
|
||||
return _timeline.animateWith(new _RepeatingSimulation(min, max, period));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user