revokeContactSync method
Revokes the current contact sync operation.
Implementation
@override
Future<void> revokeContactSync(
Function(FlyResponse response)? callback) async {
dynamic response = FlyConstants.empty;
try {
response = await mirrorFlyMethodChannel.invokeMethod('revokeContactSync');
LogMessage.d("revokeContactSync Result ", " $response");
callback?.call(FlyResponse(true, response, FlyConstants.empty));
// return response;
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
callback?.call(FlyResponse(false, FlyConstants.empty, FlyConstants.empty,
FlyException(e.code, e.message, e.details)));
} on Exception catch (e) {
LogMessage.d("Exception ", " $e");
callback?.call(FlyResponse(false, FlyConstants.empty, FlyConstants.empty,
FlyException(FlyErrorCode.unHandle, FlyErrorMessage.unHandle, e)));
}
}