提交 66dd961f 编写于 作者: H Hixie

[Effen] Try to catch more misuse of fn by asserting that UINode nodes are only...

[Effen] Try to catch more misuse of fn by asserting that UINode nodes are only built when we're updatin the tree.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1148253002
上级 edacf2a3
......@@ -32,6 +32,7 @@ abstract class UINode {
UINode({ Object key }) {
_key = key == null ? "$runtimeType" : "$runtimeType-$key";
assert(this is App || _inRenderDirtyComponents); // you should not build the UI tree ahead of time, build it only during build()
}
// Subclasses which implements Nodes that become stateful may return true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册