putValue method
Put or replace value by _resourceKey
in the storage.
Implementation
Future<void> putValue(V value) async {
assert(value != null);
_lock.synchronized(() async {
await _storage.put(_resourceKey, value);
_subject.add(Resource.success(value));
});
}