getTransformTo abstract method

Matrix4 getTransformTo(
  1. RenderObject? ancestor
)

Applies the paint transform from this RenderObject to the target RenderObject.

Returns a matrix that maps the local paint coordinate system to the coordinate system of target, or a Matrix4.zero if the paint transform can not be computed.

This method throws an exception when the target is not in the same render tree as this RenderObject, as the behavior is undefined.

This method ignores RenderObject.paintsChild. This means it will still try to compute the paint transform even if this RenderObject or target is currently not visible.

If target is null, this method returns a matrix that maps from the local paint coordinate system to the coordinate system of the PipelineOwner.rootNode.

Implementation

Matrix4 getTransformTo(RenderObject? ancestor);