PoolResource class
A member of a Pool.
A PoolResource is a token that indicates that a resource is allocated. When the associated resource is released, the user should call release.
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
-
allowRelease(
dynamic onRelease()) → void - Tells the parent Pool that the resource associated with this resource is no longer necessary, but should remain allocated until more resources are needed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
) → void - Tells the parent Pool that the resource associated with this resource is no longer allocated, and that a new PoolResource may be allocated.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited