value property

  1. @override
List<T> get value
override

Returns an unmodifiable view of the internal list.

⚠️ Calling mutations like .removeWhere() on this will throw UnsupportedError. Use the signal's own methods instead: add, remove, removeWhere, etc.

Implementation

@override
List<T> get value => UnmodifiableListView(unsafeValue);
  1. @override
set value (List<T> newValue)
override

A safe way to set the value of the signal.

Implementation

@override
set value(List<T> newValue) {
  emit(newValue);
}