last property
MutableCell<T>
get
last
Returns a cell which evaluates to List.last applied on the value in this cell.
Changing the value of the returned cell updates the value of the last element of the List held in this cell.
NOTE: The actual list is not modified but a new list is created.
Implementation
MutableCell<T> get last => mutableApply((value) => value.last,
(v) => value = _updateListLast(value, v),
changesOnly: true,
key: _MutableListPropKey(this, #last)
);