CircularList<T> class

Constructors

CircularList.new(int maxLength)

Properties

hashCode int
The hash code for this object.
no setterinherited
isFull bool
no setter
length int
getter/setter pair
maxLength int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
forEach(void callback(T item)) → void
insert(int index, T item) → void
Inserts item at index.
insertAll(int index, List<T> items) → void
Inserts items at index in order.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop() → T
Removes and returns the last value on the list
push(T value) → void
pushAll(Iterable<T> items) → void
remove(int index, [int count = 1]) → void
Deletes item at index.
replaceWith(List<T> replacement) → void
shiftElements(int start, int count, int offset) → void
toList() List<T>
toString() String
A string representation of this object.
inherited
trimStart(int count) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) → T
operator []=(int index, T value) → void