ElementValueChange<E, V>.unmodifiable constructor

ElementValueChange<E, V>.unmodifiable(
  1. ElementValueChange<E, V> source
)

Creates an unmodifiable version of an ElementValueChange.

If the source contains Cell values, they will be converted to their unmodifiable versions. The element itself will also be made unmodifiable if it is a Cell.

Returns: An immutable version of the value change that safely propagates through the reactive system.

Implementation

factory ElementValueChange.unmodifiable(ElementValueChange<E,V> source) {
  return _UnmodifiableElementValueChange._(source);
}