text method

Future<void> text({
  1. required String content,
  2. int x = 0,
  3. int y = 0,
  4. int xMulti = 1,
  5. int yMulti = 1,
  6. Rotation rotation = Rotation.r_0,
  7. bool bold = false,
})

Implementation

Future<void> text({
  required String content,
  int x = 0,
  int y = 0,
  int xMulti = 1,
  int yMulti = 1,
  Rotation rotation = Rotation.r_0,
  bool bold = false,
}) async {
  int rota = EnumTool.getRotation(rotation);
  Map<String, dynamic> params = {
    "content": content,
    "x": x,
    "y": y,
    "xMulti": xMulti,
    "yMulti": yMulti,
    "rotation": rota,
    "bold": bold,
  };
  await methodChannel.invokeMethod<void>('text', params);
}