items property

Returns an immutable copy of items in this stack

Implementation

UnmodifiableListView<T> get items => UnmodifiableListView(_items);
void items=(List<T> newItems)

Replaces items with a copy of given newItems and notifies changes

Implementation

set items(List<T> newItems) {
  _items = List.from(newItems);
  notifyListeners();
}