runWithProgress<T> method

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

Implementation

Future<T> runWithProgress<T>(Future<T> Function() f) async {
  try {
    state = true;
    return await f();
  } finally {
    state = false;
  }
}