Skip to main content

logout method

void logout ()

This function ends the session for the user or logout the user from the application.

Implementation

void logout() {
final user = Hive.box<User>('currentUser');
final url = Hive.box('url');
user.clear();
url.clear();
navigationService.removeAllAndPush(
Routes.languageSelectionRoute,
Routes.splashScreen,
arguments: '0',
);
}