revert nullability change with navigation in authentication state change [skip_ci]

This commit is contained in:
OmarHatem 2022-12-03 23:36:27 +02:00
parent ffd0079e1d
commit 98da1c221d

View file

@ -23,12 +23,12 @@ void startAuthenticationStateChange(AuthenticationStore authenticationStore,
}
if (state == AuthenticationState.allowed) {
await navigatorKey.currentState?.pushNamedAndRemoveUntil(Routes.dashboard, (route) => false);
await navigatorKey.currentState!.pushNamedAndRemoveUntil(Routes.dashboard, (route) => false);
return;
}
if (state == AuthenticationState.denied) {
await navigatorKey.currentState?.pushNamedAndRemoveUntil(Routes.welcome, (_) => false);
await navigatorKey.currentState!.pushNamedAndRemoveUntil(Routes.welcome, (_) => false);
return;
}
});