TypeMapper class

Represents a node type mapper. Allows to change node tree for a better TypeRender matching of visualization.

Constructors

TypeMapper(NodeMatcher matcher, NodeMap mapper, [NodeUnmap? unmapper])

Properties

hashCode int
The hash code for this object.
no setterinherited
mapper NodeMap
Performs the node mapping process.
final
matcher NodeMatcher
Identifies a node to map.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unmapper NodeUnmap?
Performs the node unmapping process. Used to rebuild the JSON tree from the current rendered tree.
final

Methods

map(dynamic node, dynamic parent, NodeKey nodeKey) → dynamic
matches(dynamic node, dynamic parent, NodeKey nodeKey) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unmap(dynamic node, dynamic nodeOriginal, dynamic parent, NodeKey nodeKey) → dynamic

Operators

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

Static Methods

from(dynamic matcher, dynamic mapper, [dynamic unmapper]) TypeMapper?