fromCode static method

BarcodeFormat fromCode(
  1. int code
)

Returns the format corresponding to the code.

Implementation

static BarcodeFormat fromCode(int code) =>
    _codeToFormat[code] ?? BarcodeFormat.unknown;