ValueGeneratorComponent constructor

ValueGeneratorComponent(
  1. Duration duration, {
  2. double begin = 0,
  3. double end = 1,
  4. Curve curve = Curves.decelerate,
  5. Curve? reverseCurve,
  6. VoidCallback? onFinish,
  7. ValueChanged<double>? onChange,
  8. bool autoStart = true,
  9. bool infinite = false,
})

Implementation

ValueGeneratorComponent(
  this.duration, {
  this.begin = 0,
  this.end = 1,
  this.curve = Curves.decelerate,
  this.reverseCurve,
  this.onFinish,
  this.onChange,
  this.autoStart = true,
  this.infinite = false,
}) {
  _isRunning = autoStart;
  _displacement = end - begin;
}