releasePreviewTexture method
Release the Flutter Texture receiving preview frames.
This does nothing if attachPreviewTexture is not called or the texture has already been released.
Implementation
Future<void> releasePreviewTexture() async {
_currentTexture = null;
await _channel.$releasePreviewTexture(this);
}