findAllSyncs method
Returns a FindSyncsResponse
with all the syncs
Upon success a list of syncs is provided and error is set to null
In case of error a ResponseError
is set and no sync list is provided
Implementation
@override
Future<FindSyncsResponse> findAllSyncs() {
return catchSqlError<FindSyncsResponse>(
store.syncDao.findAll().then((results) => FindSyncsResponse(
syncs:
results.map((sync) => FindSyncResponse(sync: sync)).toList())),
(sqle) => FindSyncsResponse(
error: toResponseError(sqle, context: contextShader)),
options);
}