paintChild method
Implementation
@protected
void paintChild(Context context) {
if (child != null) {
final mat = Matrix4.identity();
mat.translate(box!.x, box!.y);
context.canvas
..saveContext()
..setTransform(mat);
child!.paint(context);
context.canvas.restoreContext();
}
}