MindMap class

Annotations
  • @Freezed.new(copyWith: false)

Constructors

MindMap({required String id, required String title, @Default.new({}) Map<String, Node> nodes, @Default.new({}) Map<String, NodeMeta> nodeMetas, @Default.new({}) Map<String, dynamic> data, @SizeJsonConverter() @Default.new(Size.zero) Size size})
const
factory
MindMap.fromJson(Map<String, dynamic> json)
factory

Properties

data Map<String, dynamic>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
nodeMetas Map<String, NodeMeta>
no setterinherited
nodes Map<String, Node>
no setterinherited
root Node
no setter
rootChildren List<Node>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
no setterinherited
title String
no setterinherited

Methods

addNode({required String parentId, required NodeMeta nodeMeta}) MindMap
assertValidId(String nodeId) → void
nodeById(String nodeId) Node
nodeMetaById(String nodeId) NodeMeta
nodeMetaOf(Node node) NodeMeta
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parentOf(Node node) Node
removeNode(String nodeId) MindMap
toJson() Map<String, dynamic>
Serializes this MindMap to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
updateNode(String nodeId, NodeMeta newMeta) MindMap

Operators

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

Constants

uuid → const Uuid