drawChild method

bool drawChild(
  1. dynamic child,
  2. Canvas canvas
)

负责绘制单独的一个ChildView,同时负责Canvas的坐标的正确转换 如果在方法中调用了invalidate则返回true

Implementation

bool drawChild(View child, Canvas canvas) {
  return child.drawSelf(canvas, this);
}