logout method

  1. @override
Future logout()
override

Logs the current user out of the application.

Implementation

@override
Future logout() {
  window.localStorage.remove('token');
  return super.logout();
}