createSimulation abstract method

Simulation createSimulation({
  1. double start = 0,
  2. double end = 1,
  3. double velocity = 0,
})

Creates a simulation for this motion.

This method creates a Simulation object that defines how the animation will progress over time based on the motion's characteristics.

Parameters:

  • start - The starting value for the simulation, defaults to 0.
  • end - The ending value for the simulation, defaults to 1.
  • velocity - The initial velocity for the simulation, defaults to 0.

Returns a Simulation that can be used by an AnimationController.

Implementation

Simulation createSimulation({
  double start = 0,
  double end = 1,
  double velocity = 0,
});