FrameList<T extends Object> class final

A list filled and emptied every frame that keeps its storage when emptied. A Dart list gives its storage back on clear() (and on length = 0), so it's grown again, allocating, the next frame.

For a package's own per-frame lists, as the core's moved log is one.

Constructors

FrameList()

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
Whether there are none.
no setter
isNotEmpty → bool
Whether there is at least one.
no setter
length → int
How many there are.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(T item) → void
Puts item at the end.
clear() → void
Empties it, keeping the storage; lets go of what it held.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeWhere(bool test(T item)) → void
Takes away those test is true of, keeping the others in order.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited
operator [](int index) → T
The one at index, 0 to one less than length.