vKey function

VNode vKey(
  1. Object key,
  2. Object data
)

Creates a virtual node from data using the VNodeFactory and assigns a key to this node.

Implementation

VNode vKey(Object key, Object data) {
  final vNode = VNodeFactory.createVNode(data);
  vNode.key = key;
  return vNode;
}