transDocPreviewDstType function

String transDocPreviewDstType(
  1. DocPreviewDstType dt
)

Implementation

String transDocPreviewDstType(DocPreviewDstType dt) {
  switch (dt) {
    case DocPreviewDstType.docPreviewDstTypePdf:
      return 'pdf';
    case DocPreviewDstType.docPreviewDstTypeHtml:
      return 'html';
    case DocPreviewDstType.docPreviewDstTypePng:
      return 'png';
    case DocPreviewDstType.docPreviewDstTypeJpg:
      return 'jpg';
  }
}