cacheClass<T> method

void cacheClass<T>(
  1. String key,
  2. T object
)

Implementation

void cacheClass<T>(String key, T object) {
  if (object is! Map<String, dynamic>) {
    throw ArgumentError('Object must be a Map<String, dynamic>');
  }
  _cache[key] = object;
}