handleAsync<T> method

  1. @override
Future<T> handleAsync<T>(
  1. Future<T> fn()
)
override

Implementation

@override
Future<T> handleAsync<T>(Future<T> Function() fn) async {
  try {
    clearError();
    return await fn();
  } catch (e) {
    error = e;
    update();
    rethrow;
  }
}