DCFElement class

Represents an element in the Virtual DOM tree

Inheritance

Constructors

DCFElement({required String type, String? key, required Map<String, dynamic> props, List<DCFComponentNode> children = const []})

Properties

allDescendants List<DCFComponentNode>
Get all descendant nodes flattened into a list
no setter
children List<DCFComponentNode>
Child nodes
final
contentViewId String?
The native view ID of the rendered content
getter/setter pairinherited
effectiveNativeViewId String?
Get effective native view ID (may be from rendered content)
no setterinherited
eventTypes List<String>
Get list of event types from props
no setter
hashCode int
The hash code for this object.
no setterinherited
key String?
Unique identifier for this node
finalinherited
nativeViewId String?
Native view ID once rendered
getter/setter pairinherited
parent DCFComponentNode?
Parent node in the virtual tree
getter/setter pairinherited
props Map<String, dynamic>
Properties of the element
getter/setter pair
renderedNode DCFComponentNode?
Get the rendered node (for component-like nodes)
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Type of the element (e.g., 'View', 'Text', 'Button')
final

Methods

clone() DCFComponentNode
Clone this node
override
componentDidMount() → void
Called when the node is mounted (lifecycle method)
inherited
componentWillUnmount() → void
Called when the node will unmount (lifecycle method)
inherited
equals(DCFComponentNode other) bool
Whether this node is equal to another
override
mount(DCFComponentNode? parent) → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
unmount() → void
override

Operators

operator ==(Object other) bool
The equality operator.
inherited