StateAdapter class abstract

Optional adapter for reading and updating application state by key. The core engine does not depend on any state-management library; when provided, the engine may use this to read/update state for bindings.

Constructors

StateAdapter()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(String key) → dynamic
Get a value by key (e.g. "user", "user.name" for nested). Returns null if the key is not present.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
update(String key, dynamic value) → void
Update state for the given key with the provided value. The app decides how to persist (e.g. GetX, Bloc, Riverpod).

Operators

operator ==(Object other) → bool
The equality operator.
inherited