convenientTestRunAsyncEnhancedExceptionChecker top-level property

void Function(Object?) convenientTestRunAsyncEnhancedExceptionChecker
getter/setter pair

When running runAsyncEnhanced and see exception, will call this checker. For example, you may want to ignore certain kinds of exceptions, such as network timeout

Implementation

// ignore: avoid-global-state
void Function(Object?) convenientTestRunAsyncEnhancedExceptionChecker =
    (e) => expect(e, isNull);