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
- completedLiveCallCount → int
-
no setter
- hasPendingLiveCalls → bool
-
no setter
- lastLiveCallCompletedAt → DateTime?
-
no setter
- pendingLiveCallCount → int
-
no setter
-
platformHttpRunner
↔ Future<
T?> Function<T>(Future< T> ())? -
getter/setter pair
-
runner
↔ Future<
T?> Function<T>(Future< T> ())? -
getter/setter pair
Static Methods
-
pendingLiveCallsSnapshot(
) → Future< void> ? - Captures the live calls already in flight at this boundary.
-
reset(
) → void -
run<
T> (Future< T> call()) → Future<T?> -
runPriorityUntracked<
T> (Future< T> call()) → Future<T?> -
Runs artifact work after the currently executing live call, ahead of
background app calls that are still queued. Widget screenshot encoding
uses the same non-reentrant
WidgetTester.runAsynclane as live APIs, but should not have to wait for the app's entire background request backlog. -
runUntracked<
T> (Future< T> call(), {Future<T?> runnerOverride<T>(Future< }) → Future<T> ())?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?> - Runs platform HTTP outside the runner's console-capture zone.
-
waitForLiveCalls(
) → Future< void>