getBarcodeFormatterV2 static method

BarcodeItemMapper? getBarcodeFormatterV2(
  1. BarcodeUseCase useCase
)

Implementation

static BarcodeItemMapper? getBarcodeFormatterV2(BarcodeUseCase useCase) {
  switch (useCase.runtimeType) {
    case SingleScanningMode:
      return (useCase as SingleScanningMode)
          .barcodeInfoMapping
          .barcodeItemMapper;
    case MultipleScanningMode:
      return (useCase as MultipleScanningMode)
          .barcodeInfoMapping
          .barcodeItemMapper;
    default:
      return null;
  }
}