conceptId property

String? get conceptId

The OKF concept ID, sourcePath without .md; null for a file that is not a concept.

Implementation

String? get conceptId {
  try {
    return OkfConceptId.fromDocumentPath(sourcePath).value;
  } on FormatException {
    return null;
  }
}