dismissProgressDialog method Null safety

Future<void> dismissProgressDialog()

Implementation

Future<void> dismissProgressDialog() async {
  _timer?.cancel();
  await lock.synchronized(() async {
    if (isDismissed == null || isDismissed!) {
      return;
    }
    isDismissed = true;
    ModernFormNavigation.pop();
  });
}