PlatformRef browserStaticPlatform()

Source

PlatformRef browserStaticPlatform() {
  var platform = getPlatform();
  if (platform == null) {
    platform = new PlatformRefImpl();
    final testabilityRegistry = new TestabilityRegistry();
    createPlatform(new Injector.map({
      PLATFORM_INITIALIZER: [createInitDomAdapter(testabilityRegistry)],
      PlatformRef: platform,
      PlatformRefImpl: platform,
      TestabilityRegistry: testabilityRegistry,
    }));
  }
  return platform;
}