ShellRunAsync typedef

ShellRunAsync = Future<T?> Function<T>(Future<T> callback())

Runs callback on a real event loop, returning its result.

A flutter_test host passes tester.runAsync (real IO and toImage never complete under fake async); a host with a real event loop passes runAsyncDirectly.

Implementation

typedef ShellRunAsync = Future<T?> Function<T>(Future<T> Function() callback);