applyPaintTransform method

void applyPaintTransform (
  1. Matrix4 transform
)

Apply the paintOffset to the given transform.

Used to implement RenderObject.applyPaintTransform by slivers that use SliverPhysicalParentData.

Implementation

void applyPaintTransform(Matrix4 transform) {
  transform.translate(paintOffset.dx, paintOffset.dy);
}