TestViewConfiguration constructor

TestViewConfiguration({Size size: _kDefaultTestViewportSize, Window window })

Creates a TestViewConfiguration with the given size. Defaults to 800x600.

If a window instance is not provided it defaults to ui.window.

Implementation

factory TestViewConfiguration({
  Size size = _kDefaultTestViewportSize,
  ui.Window window,
}) {
  return TestViewConfiguration._(size, window ?? ui.window);
}