PooledComponent<T extends Pooled<T>> class

All components that should be managed in a ObjectPool must extend this class and have a factory constructor that calls Pooled.of(...) to create a component. By doing so, dartemis can handle the construction of PooledComponents and reuse them when they are no longer needed.

Inheritance
Mixed in types

Constructors

PooledComponent()

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 when removing this component override this method.
override
moveToPool() → void
Calls the cleanup function and moves this object to the ObjectPool.
inherited
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