TestViewConfiguration constructor

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

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

Implementation

TestViewConfiguration({
  Size size = _kDefaultTestViewportSize,
  ui.Window window,
})
  : _paintMatrix = _getMatrix(size, window.devicePixelRatio, window),
    _hitTestMatrix = _getMatrix(size, 1.0, window),
    super(size: size);