executeWithProgress<T> method

Future<T> executeWithProgress<T>(
  1. Future<T> f(
      )
    )

    Execute f() with showing progress.

    Implementation

    Future<T> executeWithProgress<T>(Future<T> Function() f) async {
      try {
        startProgress();
        return await f();
      } finally {
        stopProgress();
      }
    }