fromRawValue static method

BarcodeFormat fromRawValue(
  1. int rawValue
)

Implementation

static BarcodeFormat fromRawValue(int rawValue) {
  return BarcodeFormat.values.firstWhere(
      (element) => element.rawValue == rawValue,
      orElse: () => BarcodeFormat.unknown);
}