executeWithProgress<T> method

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

Implementation

Future<T> executeWithProgress<T>(Future<T> Function() f) async {
  try {
    _show = true;
    notifyListeners();
    return await f();
  } finally {
    _show = false;
    notifyListeners();
  }
}