Stack<T> class

Stack implements stack data structure.

Constructors

Stack()

Properties

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

Methods

clear() → void
Clear all the items from the stack.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peek() → T
Returns the latest pushed item without removing it.
pop() → T
Removes the latest pushed item and returns it.
push(T item) → void
Pushes the given item into stack
toString() String
A string representation of this object.
override

Operators

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