StackList<T> class

模拟栈列表并提供一些特殊的方法

Constructors

StackList()

Properties

first ↔ T
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
isEmpty bool
read-only
last ↔ T
read / write
length int
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stack List<T>
read / write

Methods

has(T item) bool
判断当前栈是否含有某个元素
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pop() → T
推出栈尾元素
push(T item) → void
向栈中添加元素
replace(T item, int index) → T
替换栈中元素
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited
operator [](int index) → T
operator []=(int index, T item) → void