get method

  1. @override
V? get(
  1. K k, {
  2. V? fallback,
})
override

Get value in cache or get fallback or null

Implementation

@override
V? get(K k, {V? fallback}) {
  if (exist(k)) {
    return _cache[k]?.value;
  }

  if (fallback != null) {
    return fallback;
  }

  return null;
}