SwiftScope class
Scoped state management for isolating state per feature/module
Constructors
- SwiftScope({required String id})
- Create a new scope with an identifier
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- isDisposed → bool
-
Check if scope is disposed
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Dispose all state in this scope
-
getState<
T> (String key) → Rx< T> - Get state from this scope
-
getStateKeys(
) → List< String> - Get all state keys in this scope
-
hasState(
String key) → bool - Check if state exists in this scope
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerState<
T> (String key, Rx< T> state) → void - Register state in this scope
-
removeState(
String key) → void - Remove state from this scope (without disposing)
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited