SmartCache constructor
SmartCache({
- required CacheStrategy cache,
- required String queueDir,
- required WsChannel wsChannel,
- bool enableCompression = true,
Implementation
SmartCache({
required CacheStrategy cache,
required String queueDir,
required WsChannel wsChannel,
this.enableCompression = true,
}) : _disk = cache,
_wsChannel = wsChannel,
_queuePath = '$queueDir/offline_queue.json' {
_setupSyncListener();
_setupConnectionListener();
_loadCompleter = Completer<void>();
_loadQueueAsync();
}