shouldSync method
Get the current state of sync, returning true if there are local unsyncronized rows that should be sent to the server
Implementation
Future<bool> shouldSync({required String dbName}) async {
final int count = await super.query("SELECT COUNT(*) FROM ${SyncData.tableName}",
singleResult: true,
params: [],
dbName: dbName);
return count > 0;
}