Block constructor

Block({
  1. required String id,
  2. required String noteId,
  3. String? parentId,
  4. required BlockType type,
  5. required BlockContent content,
  6. Map<String, Object> properties = const {},
  7. required int position,
  8. required bool hasChildren,
  9. required DateTime createdAt,
  10. required DateTime updatedAt,
})

Returns a new Block instance.

Implementation

Block({
  required this.id,
  required this.noteId,
  this.parentId,
  required this.type,
  required this.content,
  this.properties = const {},
  required this.position,
  required this.hasChildren,
  required this.createdAt,
  required this.updatedAt,
});