DataLoaderOptions<K, V, C> class

DataLoader configuration options

Constructors

DataLoaderOptions({bool? batch, int? maxBatchSize, void batchScheduleFn(void callback())?, bool? cache, C cacheKeyFn(K)?, Cache<C, Future<V>>? cacheMap})
DataLoader configuration options. Optionally turn off batching or caching or provide a cache key function or a custom cache instance.

Properties

batch bool?
Whether to batch
final
batchScheduleFn → void Function(void callback())?
A scheduling function
final
cache bool?
Whether to cache
final
cacheKeyFn → C Function(K)?
Optional mapper between the item key K and the cache key C
final
cacheMap Cache<C, Future<V>>?
A custom cache implementation
final
hashCode int
The hash code for this object.
no setterinherited
maxBatchSize int?
The maximum size of batches
final
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