applyPaintTransform method Null safety

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

Applies the transform that would be applied when painting the given child to the given matrix.

Used by coordinate conversion functions to translate coordinates local to one render object into coordinates local to another render object.


void applyPaintTransform(RenderObject child, Matrix4 transform) {
  assert(child != null);
  assert(child == this.child);
  final SliverPhysicalParentData childParentData = child.parentData! as SliverPhysicalParentData;