CacheGenerator class

Generates lib/src/cache/zfa_cache.g.dart from collected @Cacheable and @CacheInvalidate annotation metadata.

Constructors

CacheGenerator({String packageName = 'zuraffa'})

Properties

hasEntries → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
packageName → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCacheableMethod({required String className, required String methodName, required String importUri, required String returnType, required List<ParameterInfo> parameters, Duration? ttl, CacheStrategy strategy = CacheStrategy.offlineFirst, String? keyPrefix, String? boxName}) → void
addInvalidatorMethod({required String className, required String methodName, required String importUri, required List<String> methods, required List<ParameterInfo> parameters, String? keyPrefix}) → void
generate() → String
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