set method

dynamic set(
  1. Item value
)

Implementation

set(items.Item value) {
  this.ThrowIfThisIsNotNew();

  if (this._item != null) {
    this._item!.onChange.remove(this.ItemChanged);
  }
  this._item = value;
  if (this._item != null) {
    this._item!.onChange.add(this.ItemChanged);
  }
}