value property

  1. @override
Set<T> get value
override

Returns an unmodifiable view of the internal set.

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

Implementation

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

A safe way to set the value of the signal.

Implementation

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