sync method
Implementation
sync(BuildContext context) async {
resetService('age');
pr = ProgressDialog(context, type: ProgressDialogType.download, isDismissible: true);
await pr!.show();
//startWithService('syncService', syncDispatcher);
onServiceComplete('age');
}