Store class final

lang-core createStore: $variables and form fields. Keys still at their declared default are pristine and follow new defaults while the program streams; a key the user changed keeps its value.

Constructors

Store()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
snapshot → Map<String, Object?>
The state as JSON values (whole numbers as ints, see Js.normalize).
no setter

Methods

dispose() → void
get(String name) → Object?
has(String name) → bool
initialize(Map<String, Object?> defaults, Map<String, Object?> persisted) → void
Applies declared defaults and persisted values; persisted wins.
listen(void listener()) → void Function()
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restoreUntouched(Map<String, Object?> state) → void
Restores keys not written locally since this store was created.
set(String name, Object? value, {bool pristine = false, bool local = true}) → void
toString() → String
A string representation of this object.
inherited

Operators

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