ValueGeneratorComponent constructor
ValueGeneratorComponent(
- Duration duration, {
- double begin = 0,
- double end = 1,
- Curve curve = Curves.decelerate,
- Curve? reverseCurve,
- VoidCallback? onFinish,
- ValueChanged<
double> ? onChange, - bool autoStart = true,
- 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;
}