fromString static method

LabelFormat? fromString(
  1. String? value
)

Get the LabelFormat from a String.

Implementation

static LabelFormat? fromString(String? value) {
  switch (value) {
    case 'pdf':
      return pdf;
    case 'zpl':
      return zpl;
    case 'epl2':
      return epl2;
    case 'png':
      return png;
    default:
      return null;
  }
}