autoNavigate method
Perform automatic navigation based on route configuration
Implementation
Future<void> autoNavigate() async {
if (_handlers == null) return;
final isFirstTime = await CkAuthStorageKeys.isFirstTimeUser();
if (_handlers.showOnboarding != null) {
final showOnboarding = !_handlers.firstTimeOnly || isFirstTime;
if (showOnboarding) {
_handlers.showOnboarding!();
} else {
_handlers.showLogin();
}
} else {
_handlers.showLogin();
}
}