UnmodifiableCollectiveValue<V>.fromProperties constructor

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

Creates from properties with optional initial value.

Parameters:

  • properties: Configuration properties
  • unmodifiableElement: If true and value contains Cell objects, makes them unmodifiable
  • value: Optional initial value

Implementation

UnmodifiableCollectiveValue.fromProperties(CollectiveValueProperties<V> super.properties, {super.unmodifiableElement, V? value})
    : super(elements: value != null ? [value] : null);