toPhysicalSize method

  1. @override
Size toPhysicalSize(
  1. Size logicalSize

Transforms the provided Size in logical pixels to physical pixels.

The FlutterView.render method accepts only sizes in physical pixels, but the framework operates in logical pixels. This method is used to transform the logical size calculated for a RenderView back to a physical size suitable to be passed to FlutterView.render.

By default, this method just multiplies the provided Size with the devicePixelRatio and constraints the results to the physicalConstraints.


Size toPhysicalSize(Size logicalSize) => _physicalSize;