unorderedMarker function

String? unorderedMarker(
  1. String trimmed
)

- , * , or + bullet. Returns the content after the marker.

Implementation

String? unorderedMarker(String trimmed) {
  if (trimmed.length >= 2 && trimmed.codeUnitAt(1) == _space) {
    final c = trimmed[0];
    if (c == '-' || c == '*' || c == '+') {
      return trimmed.substring(2);
    }
  }
  return null;
}