detectObjectOnImage method Null safety

Future<List?> detectObjectOnImage(
  1. {required String path,
  2. String model = "SSDMobileNet",
  3. double imageMean = 127.5,
  4. double imageStd = 127.5,
  5. double threshold = 0.1,
  6. int numResultsPerClass = 5,
  7. List anchors = anchors,
  8. int blockSize = 32,
  9. int numBoxesPerBlock = 5,
  10. bool asynch = true}
)

Implementation

static Future<List?> detectObjectOnImage({
  required String path,
  String model = "SSDMobileNet",
  double imageMean = 127.5,
  double imageStd = 127.5,
  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(
    'detectObjectOnImage',
    {
      "path": path,
      "model": model,
      "imageMean": imageMean,
      "imageStd": imageStd,
      "threshold": threshold,
      "numResultsPerClass": numResultsPerClass,
      "anchors": anchors,
      "blockSize": blockSize,
      "numBoxesPerBlock": numBoxesPerBlock,
      "asynch": asynch,
    },
  );
}