notifyRemovePainters method

void notifyRemovePainters(
  1. Iterable<CPO> painters
)

Implementation

void notifyRemovePainters(Iterable<CPO> painters) {
  if (_commitLayersRemoved(painters)) {
    for (var painter in painters) {
      painter.removeListener(_onSubPainterChanged);
    }
    notifyListeners(); // 结构变动
  }
}