Merge pull request #1000 from flutter/sethladd-patch-1

Add a doc comment for Performance's repeat()
This commit is contained in:
Seth Ladd 2015-12-21 12:51:34 -08:00
commit 2bc0a05959

View File

@ -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));