Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucke0051 committed Sep 22, 2021
1 parent 04a2d16 commit b573cd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/smhi_base.dart
Expand Up @@ -65,6 +65,7 @@ class SMHICache {

Map<Uri, CacheBase>? get allCached => _cache;

///Clears the cache
void clear() {
_cache = null;
}
Expand Down Expand Up @@ -109,6 +110,9 @@ class SMHICache {
}
}

///The [function] passed will be called with the [Uri] of the data added every time data is added to the cache.
///
///The data can then be read by calling [read] with the [Uri].
void registerOnAddCallback(Function function) => _onAddCallbacks.add(function);
}

Expand Down

0 comments on commit b573cd9

Please sign in to comment.