syncPercentage method

dynamic syncPercentage()

listen to stream data of percentage synced.

Implementation

syncPercentage() {
  _dataSyncSubscription = deviceController.dataSyncPercentage.stream.listen(
      (event) {
        logger.d("In Sdk $event");
        dataSyncPercentageController.add(event);
      },
      onDone: () => disposeDataSync(),
      onError: (error) {
        disposeDataSync();
      });
}