animateWith method

TickerFuture animateWith(
  1. Simulation simulation
)

Drives the animation according to the given simulation.

Returns a TickerFuture that completes when the animation is complete.

Implementation

TickerFuture animateWith(Simulation simulation) {
  stop();
  return _startSimulation(simulation);
}