Deque<T> class

List-backed implementation of DequeBase using growable List. Provides append/pop from both left and right ends.

Implemented types

Constructors

Deque()

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
no setteroverride
length → int
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
no setteroverride

Methods

appendLeft(T value) → void
override
appendRight(T value) → void
override
clear() → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peekLeft() → T?
override
peekRight() → T?
override
popLeft() → T?
override
popRight() → T?
override
prettyPrint() → String
override
toList() → List<T>
override
toString() → String
A string representation of this object.
inherited

Operators

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