提交 cc4f7d0d 编写于 作者: H Hans Muller

Added a positional Component.fromArgs() constructor

To define a Component subclass with mixins, a constructor without optional parameters is needed.

Added Component.fromArgs() which just delegates to the main constructor.

R=rafaelw@chromium.org

Review URL: https://codereview.chromium.org/1017353002
上级 e8318f65
......@@ -653,6 +653,9 @@ abstract class Component extends Node {
_order = _currentOrder + 1,
super(key:key);
Component.fromArgs(Object key, bool stateful)
: this(key: key, stateful: stateful);
void didMount() {}
void didUnmount() {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册