FakeCache class

Simple caching utility for frequently used fake data

Constructors

FakeCache()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

cacheSize int
Get cache size
no setter

Static Methods

clearCache() → void
Clear all cached data
getCached(String key, List<String> generator, int size) List<String>
Get cached data or generate new if not cached
warmCache() → void
Pre-warm cache with common data