TestWindow constructor Null safety

TestWindow(
  1. {required SingletonFlutterWindow window}
)

Constructs a TestWindow that defers all behavior to the given dart:ui.SingletonFlutterWindow unless explicitly overridden for test purposes.

Implementation

TestWindow({
  required ui.SingletonFlutterWindow window,
}) : _window = window,
     platformDispatcher = TestPlatformDispatcher(platformDispatcher: window.platformDispatcher);