LinkedList<T> class

Constructors

LinkedList({_Node<T> first, _Node<T> last})

Properties

first ↔ _Node<T>
read / write
hashCode int
The hash code for this object.
read-onlyinherited
last ↔ _Node<T>
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

addFirst(T item) → void
Add elements as first node of the Linked List
addLast(T item) → void
Add elements as last node of the Linked List
contains(T item) bool
Returns TRUE is item is found in Linked List
getKthFromTheEnd(int k) → T
indexOf(T item) int
Returns index of item if not present returns -1
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
remove(_Node node) → void
Removes node if present
removeFirst() → void
Removes first node from Linked List
removeLast() → void
Removes Last element from list
reverse() → void
size() int
Returns current size
toArray() List<T>
Returns current Linked List as List[]
toString() String
A string representation of this object.
inherited

Operators

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