detectObjectOnBinary method Null safety

Future<List?> detectObjectOnBinary(
  1. {required Uint8List binary,
  2. String model = "SSDMobileNet",
  3. double threshold = 0.1,
  4. int numResultsPerClass = 5,
  5. List anchors = anchors,
  6. int blockSize = 32,
  7. int numBoxesPerBlock = 5,
  8. bool asynch = true}
)

Implementation

static Future<List?> detectObjectOnBinary({
  required Uint8List binary,
  String model = "SSDMobileNet",
  double threshold = 0.1,
  int numResultsPerClass = 5,
  // Used in YOLO only
  List anchors = anchors,
  int blockSize = 32,
  int numBoxesPerBlock = 5,
  bool asynch = true,
}) async {
  return await _channel.invokeMethod(
    'detectObjectOnBinary',
    {
      "binary": binary,
      "model": model,
      "threshold": threshold,
      "numResultsPerClass": numResultsPerClass,
      "anchors": anchors,
      "blockSize": blockSize,
      "numBoxesPerBlock": numBoxesPerBlock,
      "asynch": asynch,
    },
  );
}