value property

  1. @override
Map<K, V> get value
override

Returns an unmodifiable view of the internal map.

⚠️ Calling mutations on this directly will throw UnsupportedError. Use the signal's own methods instead: operator[]=, addAll, remove, etc.

Implementation

@override
Map<K, V> get value => UnmodifiableMapView(unsafeValue);
  1. @override
set value (Map<K, V> newValue)
override

A safe way to set the value of the signal.

Implementation

@override
set value(Map<K, V> newValue) {
  emit(newValue);
}