validate method
void
validate()
Validates that this node has all required fields for business operations
Implementation
void validate() {
if (id == null || id!.isEmpty) {
throw ArgumentError('Node ID cannot be null or empty');
}
if (root == null || root!.isEmpty) {
throw ArgumentError('Node root cannot be null or empty');
}
if (pathHash == null || pathHash!.isEmpty) {
throw ArgumentError('Node pathHash cannot be null or empty');
}
if (content == null) {
throw ArgumentError('Node content cannot be null');
}
}