deleteEventually method
Implementation
Future<ParseResponse> deleteEventually() async {
// save object
final ParseResponse response = await delete();
if (response.success) {
// return success response
return response;
} else {
// if have network connection error
if ((response.error?.message ?? "").contains(keyNetworkError)) {
// save this object in CoreStore
await _addThisObjectToParseCoreDataList(keyParseStoreDeletes);
} else {
return response;
}
}
return response;
}