runPix2PixOnFrame method Null safety

Future<Uint8List?> runPix2PixOnFrame(
  1. {required List<Uint8List> bytesList,
  2. int imageHeight = 1280,
  3. int imageWidth = 720,
  4. double imageMean = 0,
  5. double imageStd = 255.0,
  6. int rotation = 90,
  7. String outputType = "png",
  8. bool asynch = true}
)

Implementation

static Future<Uint8List?> runPix2PixOnFrame({
  required List<Uint8List> bytesList,
  int imageHeight = 1280,
  int imageWidth = 720,
  double imageMean = 0,
  double imageStd = 255.0,
  int rotation: 90, // Android only
  String outputType = "png",
  bool asynch = true,
}) async {
  return await _channel.invokeMethod(
    'runPix2PixOnFrame',
    {
      "bytesList": bytesList,
      "imageHeight": imageHeight,
      "imageWidth": imageWidth,
      "imageMean": imageMean,
      "imageStd": imageStd,
      "rotation": rotation,
      "asynch": asynch,
      "outputType": outputType,
    },
  );
}