newZone static method

Zone newZone()

Enables zone-local WindowController instances.

Example

import 'package:universal_html/html.dart;

void main() {
  final zone = WindowController.newZone();
  final outerWindow = window;
  zone.run(() {
    final innerWindow = window;
    print(identical(outerWindow, innerWindow)); // --> false
  });
}

Implementation

static Zone newZone() {
  return newZoneWith(WindowController());
}