remove method

bool remove(
  1. String markdown
)

Removes a specific entry from the cache.

Parameters:

  • markdown: The markdown text to remove

Returns: true if the entry was found and removed, false otherwise

Example:

cache.remove(oldMarkdownText);

Implementation

bool remove(String markdown) {
  if (_cache.remove(markdown) != null) {
    _accessOrder.remove(markdown);
    return true;
  }
  return false;
}