detect method

  1. @override
Future<List<Barcode>> detect(
  1. VisionImage image
)
override

Implementation

@override
Future<List<Barcode>> detect(VisionImage image) async {
  final sendPort = await _helperIsolateSendPort;
  final int id = _detectId++;
  final _DetectCommand command = _DetectCommand(
    id,
    symbologies?.pointer.address,
    image,
  );
  final completer = Completer<List<Barcode>>();
  _detectCompleters[id] = completer;
  sendPort.send(command);
  return completer.future;
}