TestViewConfiguration constructor

  1. @Deprecated('Use TestViewConfiguration.fromView instead. ' 'Deprecated to prepare for the upcoming multi-window support. ' 'This feature was deprecated after v3.7.0-32.0.pre.')
TestViewConfiguration({
  1. Size size = _kDefaultTestViewportSize,
  2. FlutterView? window,
})

Deprecated. Will be removed in a future version of Flutter.

This property has been deprecated to prepare for Flutter's upcoming support for multiple views and multiple windows.

Use TestViewConfiguration.fromView instead.

Implementation

@Deprecated(
  'Use TestViewConfiguration.fromView instead. '
  'Deprecated to prepare for the upcoming multi-window support. '
  'This feature was deprecated after v3.7.0-32.0.pre.'
)
factory TestViewConfiguration({
  Size size = _kDefaultTestViewportSize,
  ui.FlutterView? window,
}) {
  return TestViewConfiguration.fromView(size: size, view: window ?? ui.window);
}