VDom class
Virtual DOM implementation with efficient reconciliation and state handling
Constructors
- VDom(PlatformInterface _nativeBridge)
- Create a new VDom instance with the provided native bridge
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isReady
→ Future<
void> -
Future that completes when VDom is ready
no setter
- rootComponent ↔ DCFComponentNode?
-
Root component for the application
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createPortal(
String portalId, {required String parentViewId, Map< String, dynamic> ? props, int? index}) → Future<String> - Create a portal container with optimized properties for portaling
-
createRoot(
DCFComponentNode component) → Future< void> - Create the root component for the application
-
deleteViews(
List< String> viewIds) → Future<void> - Delete views (for portal cleanup)
-
getCurrentChildren(
String viewId) → List< String> - Get the current child view IDs of a view (for portal management)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerComponent(
DCFComponentNode component) → void - Register a component in the VDOM
-
renderToNative(
DCFComponentNode node, {String? parentViewId, int? index}) → Future< String?> - Render a node to native UI
-
toString(
) → String -
A string representation of this object.
inherited
-
updateViewChildren(
String viewId, List< String> childIds) → Future<void> - Update children of a view (for portal management)
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited