configure method
Applies validated policy without dropping decoded images or active loads. Active loads retain their original deadlines; new loads use the new one.
Implementation
void configure(DiagramImageConfiguration configuration) {
if (_disposed) throw StateError('Image cache is disposed.');
_maximumConcurrentLoads = configuration.maximumConcurrentLoads;
_retentionBytes = configuration.retentionBytes;
_loadTimeout = configuration.loadTimeout;
_drain();
scheduleMicrotask(() {
if (!_disposed) notifyListeners();
});
}