ensureIntegrationRuntime static method

void ensureIntegrationRuntime()

Initializes only runner-owned Dart listeners for a real application. Native plugin channels remain registered by the Android/iOS host app.

Implementation

static void ensureIntegrationRuntime() {
  TestWidgetsFlutterBinding.ensureInitialized();
  // Integration binding runs the real native plugins, but HTTP image
  // providers still execute inside the test zone. Give them the same real
  // network client used by widget mode so remote CachedNetworkImage and
  // NetworkImage requests are not intercepted by the binding's test client.
}