Skip to content

Commit 78bb08f

Browse files
committed
🎨 refactor container method to use HyperStorageContainer instead of StorageContainer
1 parent be16621 commit 78bb08f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/hyper_storage/lib/src/hyper_storage.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class HyperStorage extends _HyperStorageImpl {
5050
/// [container] method. Containers are cached to ensure the same instance
5151
/// is returned for repeated requests with the same name, maintaining
5252
/// consistency of listeners and state.
53-
final Map<String, StorageContainer> _containers = {};
53+
final Map<String, HyperStorageContainer> _containers = {};
5454

5555
/// Cache of serializable object containers indexed by name.
5656
///
@@ -194,7 +194,7 @@ class HyperStorage extends _HyperStorageImpl {
194194
/// - [jsonSerializableContainer] for storing custom objects with JSON
195195
/// - [objectContainer] for custom serialization logic
196196
/// - [StorageContainer] for available operations
197-
Future<StorageContainer> container(String name) async {
197+
Future<HyperStorageContainer> container(String name) async {
198198
if (_containers.containsKey(name)) return _containers[name]!;
199199
final container = await backend.container(name);
200200
return _containers[name] = container;

0 commit comments

Comments
 (0)