closeCamera method
Closes the camera by invoking the 'closeActivity' method on the method channel.
This method is asynchronous and returns a Future that completes when the camera has been successfully closed.
Implementation
Future<void> closeCamera() async {
await methodChannel.invokeMethod('closeActivity');
}