stopPreview method
Stops capturing and drawing preview frames to the previewTexture, and resets the camera for a future call to startPreview.
Implementation
Future<void> stopPreview() {
assert(!_isClosed);
return CameraChannel.channel.invokeMethod<void>(
'Camera#stopPreview',
<String, dynamic>{'handle': handle},
);
}