onServiceComplete method
Implementation
onServiceComplete(String serviceName) async {
Timer.periodic(const Duration(seconds: 3), (timer) async {
var value = await watchServiceCompleted(serviceName);
if (value == 1) {
await pr!.hide();
timer.cancel();
}
});
}