deleteAnalytic method
Implementation
@override
Future<bool> deleteAnalytic(String analyticId) async {
try {
return await dio
.delete('${ApiEndpoints.ANALYTICS}/$analyticId')
.then((value) => true);
} on Exception catch (e) {
throw HttpHelper.decodeErrorResponse(e,
tag: TAG,
logger: logger,
defaultErrorMessage: 'Failed to delete this widget resources',
meta: {'widget': analyticId, 'method': 'deleteAnalytic'});
}
}