ComponentNode class abstract

Super class for class-based components.

Inheritance
Implementers

Constructors

ComponentNode({Object? key})
States and effects are not bound to a component but to its location the node hierarchy. If no key is provided, the location of a component is compposed of the location of its parent, the type of the component and an index per component type that is increased for every component of the same type beneath the same parent. Thus, if there are 2 functional components without a key beneath the same parent, they will have the index 0 and 1. Even is the position are swapped, the first component will has the index 0 and the second component will has the index 1. To change this behaviour you can provided a key to a component (e.g. a technical id or a name). When a component with a key is moved its states and effects will also move.

Properties

hashCode int
The hash code for this object.
no setterinherited
key Object?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(ComponentContext context) DeactNode
Override this method to render the content of the component.
toString() String
A string representation of this object.
inherited

Operators

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