logout method
Implementation
Future<void> logout(BuildContext context) async {
await _sessionManager.clearSession();
await CookieManager.instance().deleteAllCookies();
Navigator.of(context).pushNamedAndRemoveUntil('/', (route) => false);
}
Future<void> logout(BuildContext context) async {
await _sessionManager.clearSession();
await CookieManager.instance().deleteAllCookies();
Navigator.of(context).pushNamedAndRemoveUntil('/', (route) => false);
}