Minor cleanup in newton
This commit is contained in:
@@ -45,7 +45,7 @@ class ScrollSimulation extends SimulationGroup {
|
||||
if (_spring == null && (position > _trailingExtent || position < _leadingExtent))
|
||||
return false;
|
||||
|
||||
/// This simulation can only step forward.
|
||||
// This simulation can only step forward.
|
||||
if (!_isSpringing) {
|
||||
if (position > _trailingExtent) {
|
||||
_isSpringing = true;
|
||||
|
||||
@@ -14,7 +14,7 @@ abstract class Simulation {
|
||||
double x(double time);
|
||||
|
||||
/// The current velocity of the object in the simulation
|
||||
double dx(double time); // TODO(ianh): remove this; see https://github.com/flutter/flutter/issues/2092
|
||||
double dx(double time);
|
||||
|
||||
/// Returns if the simulation is done at a given time
|
||||
bool isDone(double time);
|
||||
|
||||
Reference in New Issue
Block a user