toMatrix method

  1. @override
Matrix4 toMatrix()
override

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() => _paintMatrix.clone();