animateWith method
Drives the animation according to the given simulation.
simulation: The physics simulation defining motion over time.
Requires:
- Controller must be activated by a Coral resource topology before driving motion.
Returns: A TickerFuture that completes when the simulation finishes.
Throws:
- StateError if invoked while in a dormant state.
Example:
controller.animateWith(customSimulation);
Implementation
TickerFuture animateWith(Simulation simulation) =>
_delegate.animateWith(simulation);