RxNormalizedState<T> class
Reactive normalized state
- Inheritance
-
- Object
- ChangeNotifier
- Rx<
NormalizedState< T> > - RxNormalizedState
- Available extensions
Constructors
Properties
- count → int
-
Get count
no setter
-
entities
→ Map<
String, T> -
Get all entities
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
-
ids
→ Set<
String> -
Get all IDs
no setter
-
rawValue
→ NormalizedState<
T> -
Gets the value without registering as dependency (for internal use)
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
value
↔ NormalizedState<
T> -
Gets the current value and registers this SwiftValue as a dependency
getter/setter pairinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
clear(
) → void - Clear all entities
-
contains(
String id) → bool - Check if entity exists
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
getById(
String id) → T? - Get entity by ID
-
getByIds(
List< String> ids) → List<T> - Get multiple entities by IDs
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
notifyListenersTransaction(
) → void -
Available on ChangeNotifier, provided by the TransactionNotifier extension
Notifies listeners, respecting transaction context. -
remove(
String id) → void - Remove entity
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
removeMany(
List< String> ids) → void - Remove multiple entities
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
NormalizedState< T> newValue) → void -
Updates the value and notifies listeners if changed
inherited
-
upsert(
String id, T entity) → void - Add or update entity
-
upsertMany(
Map< String, T> entities) → void - Add or update multiple entities
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited