Execute f() with showing progress.
Future<T> executeWithProgress<T>(Future<T> Function() f) async { try { startProgress(); return await f(); } finally { stopProgress(); } }