TestViewConfiguration constructor Null safety

TestViewConfiguration(
  1. {Size size = _kDefaultTestViewportSize,
  2. FlutterView? 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.FlutterView? window,
}) {
  return TestViewConfiguration._(size, window ?? ui.window);
}