dynamicAnimateWith method

TickerFuture dynamicAnimateWith({
  1. required double target,
  2. double? value,
  3. double? velocity,
  4. SpringDescription? springDescription,
})

Dynamically-updatable animate.

Implementation

TickerFuture dynamicAnimateWith({
  required double target,
  double? value,
  double? velocity,
  SpringDescription? springDescription,
}) {
  final simulation = SpringSimulation(
    springDescription ?? defaultSpringDescription,
    value ?? this.value,
    target,
    velocity ?? this.velocity,
  );
  return animateWith(simulation);
}