Stack<T> class

Constructors

Stack()

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
check if the stack is empty.
no setter
isNotEmpty bool
check if the stack is not empty.
no setter
length int
get the length of the stack.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains(T x) bool
returns true if element is found in the stack
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop() → T
get the top of the stack and delete it.
push(T e) → void
push element in top of the stack.
size() int
get the size of the stack.
top() → T
get the top of the stack without deleting it.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited