logout method

Future logout()

Implementation

Future logout() async {
  try {
    if (this is FirebaseLoginMixin) {
      await (this as FirebaseLoginMixin).logoutFirebase();
    }
    if (this is SQLLoginMixin) {
      await (this as SQLLoginMixin).logoutSQL();
    }

    if (this is CachedLoginMixin) {
      await (this as CachedLoginMixin).removeCachedLogin();
    }
  } catch (e) {
    handelException(e, subTitle: 'logout');
  }
}