toMatrix method
Creates a transformation matrix that applies the devicePixelRatio.
The matrix translates points from the local coordinate system of the app (in logical pixels) to the global coordinate system of the ui.FlutterView (in physical pixels).
Implementation
@override
Matrix4 toMatrix() {
final pixelRatio = parent.devicePixelRatio;
return Matrix4.diagonal3Values(pixelRatio, pixelRatio, 1.0);
}