get method

OutputType get(
  1. String id, {
  2. bool? forceRefresh,
})

Implementation

OutputType get(String id, { bool? forceRefresh }) {
  if ((forceRefresh == null || forceRefresh == false) && itemCache.containsKey(id)) {
    return itemCache[id]!;
  } else {
    Item item = fetchItem(id);
    final outputItem = save(item);
    return outputItem;
  }
}