ListItem constructor

ListItem({
  1. required String bulletType,
  2. required List<int> indexList,
  3. List<FNode>? children,
})

Implementation

ListItem({required this.bulletType, required this.indexList, List<FNode>? children})
    : children = children ?? [Paragraph()], // Default: an empty paragraph
      super(nanoid());