Creator class
class Creator { /** * Create main widget */ static dynamic create(u) { ClassMirror uClassMirror = reflectClass(u); return uClassMirror.newInstance(const Symbol(""), []).reflectee; } /** * Create new instance of widget by wrapping [element]. */ static InstanceMirror instantiateWidget(ClassMirror clazz, Element element) { return clazz.newInstance(const Symbol("wrap"), [element]); } }
Static Methods
dynamic create(u) #
Create main widget
static dynamic create(u) { ClassMirror uClassMirror = reflectClass(u); return uClassMirror.newInstance(const Symbol(""), []).reflectee; }
InstanceMirror instantiateWidget(ClassMirror clazz, Element element) #
Create new instance of widget by wrapping element.
static InstanceMirror instantiateWidget(ClassMirror clazz, Element element) { return clazz.newInstance(const Symbol("wrap"), [element]); }