DataModel class

A standalone, observable data store representing the client-side state. It handles JSON Pointer path resolution and reactive signal management.

Constructors

DataModel([Object? initialData])

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

dispose() → void
get(String path) Object?
Synchronously gets data at a specific JSON pointer path.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(String path, Object? value) → void
Updates data at a specific path and notifies subscribers.
toString() String
A string representation of this object.
inherited
watch<T>(String path) ReadonlySignal<T?>
Returns a ReadonlySignal for a specific path. Internally cached using a WeakReference to prevent leaks.

Operators

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