fromString static method

FileFormat? fromString(
  1. String? value
)

Get the FileFormat from a String.

Implementation

static FileFormat? fromString(String? value) {
  switch (value) {
    case 'PDF':
      return pdf;
    case 'ZPL':
      return zpl;
    case 'EPL2':
      return epl2;
    default:
      return null;
  }
}