createElement method
Create an element
Implementation
DCFElement createElement(
String type, {
Map<String, dynamic>? props,
List<DCFComponentNode>? children,
String? key,
}) {
return DCFElement(
type: type,
props: props ?? {},
children: children ?? [],
key: key,
);
}