applyPaintTransform method
- Matrix4 transform
Apply the paintOffset to the given transform
.
Used to implement RenderObject.applyPaintTransform by slivers that use SliverPhysicalParentData.
Implementation
void applyPaintTransform(Matrix4 transform) {
// Hit test logic relies on this always providing an invertible matrix.
transform.translate(paintOffset.dx, paintOffset.dy);
}