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