Dman_14

Untitled

Jan 21st, 2021
1,090
133 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ProfilePageController extends ChangeNotifier {
  2.    
  3.     Function onLogoutSuccess;
  4.  
  5.     logout() async {
  6.         await locator<AuthenticationService>().signOut()
  7.         if (onLogoutSuccess != null) onLogoutSuccess();
  8.     }
  9.  
  10. }
RAW Paste Data