isFirstRun method

Future<bool> isFirstRun()

Returns true when onboarding should be shown.

If storage has no saved value (for example, after reinstall or manual storage clear), this safely falls back to the default first-run value.

Implementation

Future<bool> isFirstRun() async {
  final value = await _storageService.getBool(FirstRunConstants.firstRunKey);
  return value ?? FirstRunConstants.defaultFirstRunValue;
}