Queue<T> class

A very simple queue

Constructors

Queue()

Properties

hashCode → int
The hash code for this object.
no setterinherited
The element that has been added the longest time ago
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tail ↔ QueueItem<T>?
The element that has been added most recently
getter/setter pair

Methods

enqueue(T val) → void
Enqueue another element
isEmpty() → bool
Check if the Queue is empty
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pull() → T?
Get the top item and remove it
toString() → String
A string representation of this object.
inherited

Operators

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