paintChild method

  1. @protected
void paintChild(
  1. Context context
)

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();
  }
}