vdom library

Properties

listenersConfigSize int
no setter
nextId int
getter/setter pair

Functions

createNode(Node vNode, {bool isSvg = false}) → dynamic
Creates a real DOM node from a VDOM node. Returns dynamic to support build_runner.
isIgnorable(Node node) bool
mount(dynamic parent, Node vNode) → void
Mounts a VDOM node into a parent element. Handles initial render (appendChild) vs update (patch) logic.
mountList(dynamic parent, List<Node> vNodes) → void
Mounts a list of VDOM nodes into a parent element. Each node is mounted sequentially.
patch(dynamic realNode, Node vNode, {bool isSvg = false}) → void
Patches an existing DOM element to match a Virtual DOM node. Accepts dynamic realNode to support build_runner (VM) compilation where types are stubs.