UnmodifiableCollectiveValue<V> constructor

UnmodifiableCollectiveValue<V>(
  1. V value, {
  2. bool unmodifiableElement = true,
  3. CollectiveValueProperties<V>? properties,
})

Creates an unmodifiable value with the specified initial value.

Parameters:

  • value: The initial immutable value
  • unmodifiableElement: If true and value is a Cell, makes it unmodifiable
  • properties: Configuration properties for the collective

Implementation

UnmodifiableCollectiveValue(V value, {bool unmodifiableElement = true, CollectiveValueProperties<V>? properties})
    : super(properties ?? CollectiveValueProperties<V>(), unmodifiableElement: unmodifiableElement, elements: [value]);