extension property
String
get
extension
Get the file extension for this format
Implementation
String get extension {
switch (this) {
case ConversionFormat.pdf:
return 'pdf';
case ConversionFormat.docx:
return 'docx';
case ConversionFormat.xlsx:
return 'xlsx';
case ConversionFormat.pptx:
return 'pptx';
case ConversionFormat.jpg:
return 'jpg';
case ConversionFormat.png:
return 'png';
case ConversionFormat.html:
return 'html';
}
}