parseDSXMarkID static method

int? parseDSXMarkID(
  1. String s
)

Parses s to a DSX reference mark ID.

Implementation

static int? parseDSXMarkID(String s) {
  var match = markRegExp.firstMatch(s);
  if (match == null) return null;
  var idStr = match.group(1);
  if (idStr == null) return null;
  var id = int.parse(idStr);
  return id;
}