setup method

  1. @internal
void setup(
  1. int steps,
  2. void onFinish()
)

Called by the start method; this is only exposed for testing purposes.

Implementation

@internal
void setup(
  int steps,
  void Function() onFinish,
) {
  _onFinish = onFinish;
  _stepsAmount = steps;
  _hasSetup = true;
  if (autoStart) {
    start();
  }
}