VDomAPI class
Main API for VDOM operations This class provides a simplified interface to the VDOM implementation
Properties
Methods
-
createElement(
String type, {Map< String, dynamic> ? props, List<DCFComponentNode> ? children, String? key}) → DCFElement - Create an element
-
createPortal(
String portalId, {String? parentViewId, Map< String, dynamic> ? props, int? index}) → Future<String> - Create a portal container with the specified ID and properties
-
createRoot(
DCFComponentNode component) → Future< void> - Create a root component
-
debugLog(
String message) → void - Log VDOM state for debugging
-
getCurrentChildren(
String targetViewId) → List< String> - Get the current child view IDs of a target container This allows portal content to be appended rather than replaced
-
init(
PlatformInterface platformInterface) → Future< void> - Initialize the VDOM API with a platform interface
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
renderToNative(
DCFComponentNode node, {String? parentViewId, int? index}) → Future< String?> - Render a node to native UI
-
toString(
) → String -
A string representation of this object.
inherited
-
updateTargetChildren(
String targetViewId, List< String> childViewIds) → Future<void> - Update a target container's children (for portal content) This ensures the native bridge call goes through the VDOM system
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited