Pooled<T extends Pooled<T>> mixin

Objects of this class can be pooled in the ObjectPool for later reuse.

Should be added as a mixin.

Mixin Applications

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cleanUp() → void
If you need to do some cleanup before this object moves into the Pool of reusable objects.
moveToPool() → void
Calls the cleanup function and moves this object to the ObjectPool.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

of<T extends Pooled<T>>(CreatePooled<T> createPooled) → T
Creates a new Pooled of type T.