Each number defines a step. Hence, total count of numbers determines the total number of steps.
final List<int>? numbers;