InterpreterStack<T>.fromList constructor
InterpreterStack<T>.fromList (
- List<
T> list
Construct a stack instance from a Dart Queue
Dart does not have a native representation for a Stack. This implementation wraps a Queue datastructure with the needed operations. Each element in the stack is represented as a byte buffer in the Queue.
Implementation
InterpreterStack.fromList(List<T> list){
this._list = List<T>.from(list);
}