scheduleBuildFor method

void scheduleBuildFor(
  1. Element element
)

Implementation

void scheduleBuildFor(Element element) {
  assert(!isFirstBuild);
  assert(element.dirty, 'scheduleBuildFor() called for a widget that is not marked as dirty.');

  if (element._inDirtyList) {
    _dirtyElementsNeedsResorting = true;
    return;
  }
  if (!_scheduledBuild) {
    element.binding.scheduleBuild(performBuild);
    _scheduledBuild = true;
  }

  _dirtyElements.add(element);
  element._inDirtyList = true;
}