generateValues method

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

Used to generate numbers to create your animations or anythings

Implementation

ValueGeneratorComponent generateValues(
  Duration duration, {
  double begin = 0.0,
  double end = 1.0,
  Curve curve = Curves.linear,
  Curve? reverseCurve,
  bool autoStart = true,
  bool infinite = false,
  VoidCallback? onFinish,
  ValueChanged<double>? onChange,
}) {
  final valueGenerator = ValueGeneratorComponent(
    duration,
    end: end,
    begin: begin,
    curve: curve,
    reverseCurve: reverseCurve,
    onFinish: onFinish,
    onChange: onChange,
    autoStart: autoStart,
    infinite: infinite,
  );
  add(valueGenerator);
  return valueGenerator;
}