@@ -45,17 +45,19 @@ class ItemHolder<E extends Object> with Stream<E?> implements BaseListenable, It
4545 /// If not provided, the default backend's get method will be used.
4646 /// This allows for flexibility in how items are retrieved.
4747 ///
48- /// If either getter or setter is provided, both must be provided.
49- /// This ensures that the item can be both retrieved and stored correctly.
48+ /// When overriding access behaviour, provide both getter and setter so the
49+ /// holder can read and write symmetrically. If either callback is omitted,
50+ /// the corresponding backend default will be used.
5051 final ItemGetter <E >? getter;
5152
5253 /// Custom setter function to store the item in the backend.
5354 ///
5455 /// If not provided, the default backend's set method will be used.
5556 /// This allows for flexibility in how items are stored.
5657 ///
57- /// If either getter or setter is provided, both must be provided.
58- /// This ensures that the item can be both retrieved and stored correctly.
58+ /// When overriding access behaviour, provide both getter and setter so the
59+ /// holder can read and write symmetrically. If either callback is omitted,
60+ /// the corresponding backend default will be used.
5961 final ItemSetter <E >? setter;
6062
6163 final StreamController <E ?> _streamController = StreamController <E ?>.broadcast ();
@@ -305,8 +307,7 @@ mixin ItemHolderMixin on BaseStorage {
305307 /// map. This is called when storing the object.
306308 ///
307309 /// Returns:
308- /// A [Future] that completes with a [JsonItemHolder] configured to
309- /// manage the object at the specified key.
310+ /// A [JsonItemHolder] configured to manage the object at the specified key.
310311 ///
311312 /// Throws:
312313 /// * [ArgumentError] if the key is invalid (empty or only whitespace)
@@ -409,6 +410,7 @@ mixin ItemHolderMixin on BaseStorage {
409410 /// - List of String
410411 /// - JSON Map
411412 /// - List of JSON Maps
413+ /// - Uint8List
412414 /// - Enum (requires providing [enumValues] unless custom getter/setter supplied)
413415 ///
414416 /// Parameters:
0 commit comments