captureImage method

Future<void> captureImage({
  1. int? maxSize,
})

called when capture the image

Implementation

Future<void> captureImage({int? maxSize}) async {
  // TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
  await channel.invokeMethod('captureImage', <String, dynamic>{
    'maxSize': maxSize,
  });
}