runSegmentationOnImage method Null safety

Future<Uint8List?> runSegmentationOnImage(
  1. {required String path,
  2. double imageMean = 0,
  3. double imageStd = 255.0,
  4. List<int>? labelColors,
  5. String outputType = "png",
  6. bool asynch = true}
)

Implementation

static Future<Uint8List?> runSegmentationOnImage(
    {required String path,
    double imageMean = 0,
    double imageStd = 255.0,
    List<int>? labelColors,
    String outputType = "png",
    bool asynch = true}) async {
  return await _channel.invokeMethod(
    'runSegmentationOnImage',
    {
      "path": path,
      "imageMean": imageMean,
      "imageStd": imageStd,
      "labelColors": labelColors ?? pascalVOCLabelColors,
      "outputType": outputType,
      "asynch": asynch,
    },
  );
}