create static method

NodeCreate create({
  1. required Map<String, dynamic> content,
  2. String? previous,
  3. String? pathHash,
})

Create NodeCreate from basic parameters

Implementation

static NodeCreate create({
  required Map<String, dynamic> content, String? previous,
  String? pathHash,
}) {
  final nodeCreate = NodeCreate(
    previous: previous ?? '',
    pathHash: pathHash,
    content: NodeCreateContentExtensions.fromMap(content),
  );

  nodeCreate.validate();
  return nodeCreate;
}