LiveAsyncCallSupport class
Serializes real async work (HTTP, etc.) through WidgetTester.runAsync.
Flutter rejects reentrant WidgetTester.runAsync calls, so live network requests from the app must be queued when multiple actions run in parallel.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- drainPendingExceptions ↔ void Function()?
-
getter/setter pair
- hasPendingLiveCalls → bool
-
no setter
-
runner
↔ Future<
T?> Function<T>(Future< T> ())? -
getter/setter pair
Static Methods
-
reset(
) → void -
run<
T> (Future< T> call()) → Future<T?> -
runUntracked<
T> (Future< T> call()) → Future<T?> - Queues work through the same runAsync lane without counting it as live app work. Use this for best-effort artifact generation so API settling does not wait for screenshots.
-
runWithPlatformHttp<
T> (Future< T> call()) → Future<T?> - Backwards-compatible alias for callers that need real async work.
-
waitForLiveCalls(
) → Future< void>