Node class

Available extensions
Annotations
  • @JsonSerializable.new()
  • @ApiUuidJsonConverter.new()

Constructors

Node({String? id, String? root, String? previous, String? pathHash, NodeContent? content})
const
Node.fromJson(Map<String, dynamic> jsonMap)
factory

Properties

content → NodeContent?
final
contentMap → Map<String, dynamic>

Available on Node, provided by the NodeExtensions extension

Get the content as a Map<String, dynamic>
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → String?
final
pathHash → String?
final
previous → String?
final
root → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
validId → String

Available on Node, provided by the NodeExtensions extension

Get the ID with validation (throws if null)
no setter
validPathHash → String

Available on Node, provided by the NodeExtensions extension

Get the pathHash with validation (throws if null)
no setter
validRoot → String

Available on Node, provided by the NodeExtensions extension

Get the root with validation (throws if null)
no setter

Methods

copyWith({String? id, String? root, String? previous, String? pathHash, Map<String, dynamic>? content}) → Node

Available on Node, provided by the NodeExtensions extension

Create a copy of this node with updated fields
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override
validate() → void

Available on Node, provided by the NodeExtensions extension

Validates that this node has all required fields for business operations

Operators

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