stop method
Implementation
Future<void> stop() async {
if (_cameraController != null) {
await _stop(true);
try {
final image = await _cameraController!.takePicture();
setState(() {
_lastImage = image;
});
} on PlatformException catch (e) {
debugPrint('$e');
}
}
}