logout static method

Future logout()

Implementation

static Future logout() async {
  try {
    var uidPhone = Common.getUidPhone();
    var phone = Common.getPhoneNumber();
    if (uidPhone.isEmpty || phone.isEmpty) return;

    await SQLService.execute('sp_Logout',
        params: {'phone': phone, 'uidPhone': uidPhone});
    await FirebaseAuth.instance.signOut();
  } catch (e) {
    LogController.setLog(
        log: e.toString(), titleLog: 'FirebaseServerice.logout');
    if (kDebugMode) {
      print('logout: $e');
    }
  }
}