printBitmapCPCL method Null safety

Future<int> printBitmapCPCL(
  1. {dynamic bytes,
  2. dynamic x,
  3. dynamic y,
  4. dynamic type,
  5. dynamic compressType,
  6. dynamic light}
)

Implementation

static Future<int> printBitmapCPCL(
    {bytes, x, y, type, compressType, light}) async {
  // final Directory directory = await getApplicationDocumentsDirectory();
  // final File file = File('${directory.path}/img.jpg');
  // await file.writeAsBytes(bytes);

  final int p = await _channel.invokeMethod('printBitmapCPCL', {
    'bytes': bytes,
    'x': x,
    'y': y,
    'type': type,
    'compressType': compressType,
    'light': light,
  });
  return p;
}