release method

Future<void> release()

Deallocate this texture.

Implementation

Future<void> release() {
  if (_isClosed) return Future<void>.value();

  _isClosed = true;
  return CameraChannel.channel.invokeMethod<void>(
    '$NativeTexture#release',
    <String, dynamic>{'handle': _handle},
  );
}