applyPaintTransform method

void applyPaintTransform (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);
}