qrCode method

Future<void> qrCode({
  1. required String content,
  2. int x = 0,
  3. int y = 0,
  4. int cellWidth = 6,
  5. Rotation rotation = Rotation.r_0,
})

Implementation

Future<void> qrCode({
  required String content,
  int x = 0,
  int y = 0,
  int cellWidth = 6,
  Rotation rotation = Rotation.r_0,
}) async {
  int rota = EnumTool.getRotation(rotation);
  Map<String, dynamic> params = {
    "content": content,
    "x": x,
    "y": y,
    "cellWidth": cellWidth,
    "rotation": rota
  };
  await methodChannel.invokeMethod<void>('qrCode', params);
}