removeLeadingEmptyLine method

void removeLeadingEmptyLine(
  1. ListItem item
)

Implementation

void removeLeadingEmptyLine(ListItem item) {
  if (item.lines.isNotEmpty && _emptyPattern.hasMatch(item.lines.first)) {
    item.lines.removeAt(0);
  }
}