notifyAddPainter method

void notifyAddPainter(
  1. CPO painter
)

Implementation

void notifyAddPainter(CPO painter) {
  _commitLayerAdded(painter);
  painter.addListener(_onSubPainterChanged);
  notifyListeners(); // 结构变动,也触发重绘
}