ValueGeneratorComponent constructor

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

Implementation

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