Commit 174ee11d authored by Adam Barth's avatar Adam Barth

Fix analyzer warning

parent ba41fd35
...@@ -161,7 +161,7 @@ typedef void ElementVisitor(Element element); ...@@ -161,7 +161,7 @@ typedef void ElementVisitor(Element element);
const Object _uniqueChild = const Object(); const Object _uniqueChild = const Object();
/// Elements are the instantiations of Widget configurations. /// Elements are the instantiations of Widget configurations.
/// ///
/// Elements can, in principle, have children. Only subclasses of /// Elements can, in principle, have children. Only subclasses of
/// RenderObjectElement are allowed to have more than one child. /// RenderObjectElement are allowed to have more than one child.
abstract class Element<T extends Widget> { abstract class Element<T extends Widget> {
...@@ -368,7 +368,7 @@ class _BuildScheduler { ...@@ -368,7 +368,7 @@ class _BuildScheduler {
sortedDirtyElements[index]._rebuildIfNeeded(); sortedDirtyElements[index]._rebuildIfNeeded();
if (!_dirtyElements.isEmpty) { if (!_dirtyElements.isEmpty) {
assert(_dirtyElements.every((Element element) => !sortedDirtyElements.contains(element))); assert(_dirtyElements.every((Element element) => !sortedDirtyElements.contains(element)));
_absorbDirtyElement(sortedDirtyElements); _absorbDirtyElements(sortedDirtyElements);
index = 0; index = 0;
} else { } else {
index += 1; index += 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment