setup method
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();
}
}