SagaProgress.initial constructor

SagaProgress.initial()

Creates the baseline progress with level 0 unlocked. Note that level 0 is the first level.

Implementation

factory SagaProgress.initial() {
  return SagaProgress(
    currentMaxUnlockedLevelId: 0,
    levels: {
      0: const LevelProgress(
        levelId: 0,
        state: LevelCompletionState.unlocked,
        stars: 0,
      ),
    },
    extra: {},
  );
}