applyTransform method
override
Applies the transform that would be applied when compositing the given child to the given matrix.
See ContainerLayer.applyTransform for details.
The child
argument may be null, as the same transform is applied to all
children.
Implementation
@override
void applyTransform(Layer? child, Matrix4 transform) {
if (offset != Offset.zero) {
transform.translate(offset.dx, offset.dy);
}
}