Stack<T> constructor

Stack<T>([List<T> data ])

Implementation

Stack([List<T> data]){
  data ??= [];
  this._data = data.reversed.toList();
}