remove method

bool remove(
  1. String id
)

Removes asset id and revoke ObjectURL.

Implementation

bool remove(String id) {
  if (isEmptyString(id)) return false;

  var prev = _assets.remove(id);
  if (prev != null) {
    try {
      Url.revokeObjectUrl(prev.objectURL);
    } catch (e, s) {
      print(e);
      print(s);
    }
    return true;
  }
  return false;
}