configureViewport method
void
configureViewport({})
Configures the logical viewport size and backing-store scale.
Implementation
void configureViewport({
required double width,
required double height,
double devicePixelRatio = 1.0,
}) {
_viewportWidth = width > 0 ? width : 1;
_viewportHeight = height > 0 ? height : 1;
_devicePixelRatio = devicePixelRatio > 0 ? devicePixelRatio : 1.0;
}