StatelessComponent class abstract
Stateless component without hooks or state
- Inheritance
-
- Object
- DCFComponentNode
- StatelessComponent
Constructors
- StatelessComponent({String? key})
- Create a stateless component
Properties
- 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
- hashCode → int
-
The hash code for this object.
no setterinherited
- instanceId → String
-
Unique ID for this component instance
final
- isMounted → bool
-
Get whether the component is mounted
no setter
- 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
- renderedNode ↔ DCFComponentNode
-
Get the rendered node (lazily render if necessary)
getter/setter pairoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeName → String
-
Type name for debugging
final
Methods
-
clone(
) → DCFComponentNode -
Implement VDomNode methods
override
-
componentDidMount(
) → void -
Called when the component is mounted
override
-
componentWillUnmount(
) → void -
Called when the component will unmount
override
-
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
-
render(
) → DCFComponentNode - Render the component - must be implemented by subclasses
-
toString(
) → String -
A string representation of this object.
override
-
unmount(
) → void -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited