of static method

AppAgent? of(
  1. FlutterRuntime runtime
)

The agent for runtime; null for runtimes that cannot call service extensions.

Implementation

static AppAgent? of(FlutterRuntime runtime) =>
    runtime is VmServiceRuntime ? (_agents[runtime] ??= AppAgent._(runtime)) : null;