createVNode static method
Implementation
static VNode createVNode(Object? data) {
if (data is VNode) {
return data;
} else if (data is String) {
return VText(data);
} else if (data is Component) {
return VComponent(data);
}
throw StateError("Unable to create VNode from '${data.runtimeType}' $data");
}