getValue static method

String getValue(
  1. String code
)

Implementation

static String getValue(String code) => PrinterStatus.values
    .firstWhere((activity) => activity.code == code)
    .value;