applyPaintTransform method

  1. @override
void applyPaintTransform(
  1. covariant RenderObject child,
  2. Matrix4 transform

Multiply the transform from the parent's coordinate system to this box's coordinate system into the given transform.

This function is used to convert coordinate systems between boxes. Subclasses that apply transforms during painting should override this function to factor those transforms into the calculation.

The RenderBox implementation takes care of adjusting the matrix for the position of the given child as determined during layout and stored on the child's parentData in the BoxParentData.offset field.


void applyPaintTransform(RenderObject child, Matrix4 transform) { }