runWithRealNetworkHttpOverrides<T> static method

Future<T> runWithRealNetworkHttpOverrides<T>(
  1. Future<T> run()
)

Runs the app under a real HTTP client while keeping the override scoped to the suite's async zone. A global or painting-debug override leaks across Flutter widget tests and fails Flutter's test invariants.

Implementation

static Future<T> runWithRealNetworkHttpOverrides<T>(
  Future<T> Function() run,
) =>
    runWithRealNetworkHttpClient(run);