Commit 96ae6d65 authored by Seth Ladd's avatar Seth Ladd

Add a doc comment for Performance's repeat()

How's this?
parent 884c8e9e
...@@ -646,6 +646,8 @@ class Performance extends PerformanceView ...@@ -646,6 +646,8 @@ class Performance extends PerformanceView
return _timeline.animateWith(force.release(progress, velocity)); 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 }) { Future repeat({ double min: 0.0, double max: 1.0, Duration period }) {
period ??= duration; period ??= duration;
return _timeline.animateWith(new _RepeatingSimulation(min, max, period)); return _timeline.animateWith(new _RepeatingSimulation(min, max, period));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment