setPictureSize method

Future<void> setPictureSize(
  1. int width,
  2. int height
)

set the size of the picture

Implementation

Future<void> setPictureSize(int width, int height) async {
  // TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.

  var x = await channel.invokeMethod(
      'setPictureSize', {"pictureWidth": width, "pictureHeight": height});

  print("setPictureSize => $x");
}