pushListItem method

void pushListItem(
  1. int depth,
  2. String content
)

Adds a list item line at the specified depth

Implementation

void pushListItem(int depth, String content) {
  push(depth, '$listItemPrefix$content');
}