removeBitmapData method

void removeBitmapData (
  1. String name,
  2. {bool dispose: true}
)

Implementation

void removeBitmapData(String name, {bool dispose = true}) {
  var resourceManagerResource = _removeResource('BitmapData', name);
  var bitmapData = resourceManagerResource?.value;
  if (bitmapData is BitmapData && dispose) {
    bitmapData.renderTexture.dispose();
  }
}