dvDocumentSlotCloseFor function

String? dvDocumentSlotCloseFor(
  1. String comment
)

Whether comment opens one of the slot regions the minifier must copy as written; the matching close marker when it does.

Implementation

String? dvDocumentSlotCloseFor(String comment) {
  for (final DVDocumentSlot slot in DVDocumentSlot.values) {
    if (comment == slot.open) return slot.close;
  }
  return null;
}