Pooled mixin

Represents a pooled object. Implement onReset for objects being added back to the pool to reset any fields before being reused.

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onReset() → void
Called by the pool when an object is being added to the available set in the pool
release() → void
Releases this object back into the available set in the pool it came from. This method can only be called if it was taken from a pool. After releasing this object, it could be used & modified by another user of the pool so treat this as a dispose
toString() → String
A string representation of this object.
inherited

Operators

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