set method

void set(
  1. String key,
  2. dynamic value
)

Stores an item in the cache

  • Parameters:
    • key: The key to store the item under
    • value: The value to store

Implementation

void set(String key, dynamic value) {
  _cache[key] = value;
}