logout method
Implementation
Future<LoginModel> logout() async {
dynamic result = await methodChannel.invokeMethod('signOut');
Map map = json.decode(result);
if (map.keys.any((element) => element == 'token')) {
return LoginModel(map['error'], map["message"], map["token"]);
} else {
return LoginModel(map['error'], map["message"], "");
}
}