UnmodifiableCollectiveValue<V>.bind constructor

UnmodifiableCollectiveValue<V>.bind(
  1. CollectiveValue<V> bind, {
  2. bool unmodifiableElement = true,
})

Creates an unmodifiable wrapper around an existing CollectiveValue.

Parameters:

  • bind: The value to make unmodifiable
  • unmodifiableElement: If true and value contains Cell objects, makes them unmodifiable

Implementation

UnmodifiableCollectiveValue.bind(CollectiveValue<V> bind, {bool unmodifiableElement = true})
    : this.fromProperties((bind._properties as _CollectiveValueProperties).copy(bind: bind) as CollectiveValueProperties<V>, unmodifiableElement: unmodifiableElement,
    value: bind.value
);