notifyClear method

void notifyClear([
  1. Iterable<CPO>? clears
])

Implementation

void notifyClear([Iterable<CPO>? clears]) {
  for (final p in clears ?? layers) {
    p.removeListener(_onSubPainterChanged);
  }
  _commitLayersCleared(clears);
  notifyListeners();
}