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