applyPaintTransform method

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

This returns the matrices relative to the untransformed plane's viewport painting coordinates system.

Implementation

@override
void applyPaintTransform(RenderBox child, Matrix4 transform) {
  final CircleListParentData? parentData =
      child.parentData as CircleListParentData?;
  if (axis == Axis.vertical) {
    transform.translate(
        0.0, _getUntransformedPaintingCoordinate(parentData!.offset.dy));
  } else {
    transform.translate(
        _getUntransformedPaintingCoordinate(parentData!.offset.dx), 0.0);
  }
}