ListItem
@Js
class ListItem : Block
A child of a ListBlock, containing other blocks (e.g. Paragraph, other lists, etc.)
Note that a list item can't directly contain Text, it needs to be: ListItem : Paragraph : Text.
If you want a list that is rendered tightly, created a list with ListBlock.tight
The indent of the marker such as - or 1. in columns (spaces or tab stop of 4) if available, or null otherwise
The indent of the content in columns (spaces or tab stop of 4) if available or null otherwise
Int? : contentIndent
The indent of the content in columns (spaces or tab stop of 4) if available or null otherwise. The content indent is counted from the beginning of the line and includes the marker on the first line
- Foo(content indent: 2)- Foo(content indent: 3)1. Foo(content indent: 5)
Note that subsequent lines in the same list item need to be indented by at least the content indent to be counted as part of the list item.
new make(Int? markerIndent, Int? contentIndent)
Int? : markerIndent
The indent of the marker such as - or 1. in columns (spaces or tab stop of 4) if available, or null otherwise.
- Foo(marker indent: 0)- Foo(marker indent: 1)1. Foo(marker indent: 2)