captureImage method
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,
});
}