paintChanged method Null safety

void paintChanged()

Implementation

void paintChanged() {
  addDirt(ComponentDirt.path);
  _markBlendModeDirty();
  _markRenderOpacityDirty();

  // Add world transform dirt to the direct dependents (don't recurse) as
  // things like ClippingShape directly depend on their referenced Shape. This
  // allows them to recompute any stored values which can change when the
  // transformAffectsStroke property changes (whether the path is in world
  // space or not). Consider using a different dirt type if this pattern is
  // repeated.
  for (final d in dependents) {
    d.addDirt(ComponentDirt.worldTransform);
  }

  // Path composer needs to update if we update the types of paths we want.
  _markComposerDirty();
}