enqueue method
Add a request to the end of the queue.
Implementation
@override
void enqueue(QueuedRequest request) {
// Convert QueuedRequest → SerializableRequest if possible.
// Note: the execute closure will be lost. For persistent storage,
// prefer enqueueSerializable().
_queue.add(SerializableRequest(
id: request.id,
method: 'GET',
url: '',
cacheKey: request.cacheKey,
maxRetries: request.retryPolicy.maxRetries,
enqueuedAt: request.enqueuedAt,
));
_persistSync();
_logger.warning(
'PersistentQueueStore: enqueued "${request.id}" via QueueStore '
'interface — execute closure will NOT be persisted. '
'Use enqueueSerializable() for full persistence.',
);
}