release method

Future<void> release()

Implementation

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

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