ValueChange<V>.unmodifiable constructor

ValueChange<V>.unmodifiable(
  1. ValueChange<V> source
)

Creates an unmodifiable version of an existing ValueChange.

If the source contains Cell values, they will be converted to their unmodifiable versions as well.

This is useful when you need to ensure value changes can't be modified after creation, particularly when propagating changes through a reactive system.

Implementation

factory ValueChange.unmodifiable(ValueChange<V> source) {
  return _UnmodifiableValueChange._(source);
}