menu
nomiuo_pool package
documentation
nomiuo_pool.dart
PoolResource<T> class
PoolResource<T> class
dark_mode
light_mode
PoolResource<
T
>
class
abstract
Constructors
PoolResource.new
(
T
resource
)
Properties
createTime
↔
DateTime
getter/setter pair
hashCode
→
int
The hash code for this object.
no setter
inherited
resource
↔ T
getter/setter pair
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
Methods
noSuchMethod
(
Invocation
invocation
)
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onRelease
(
Object
error
,
StackTrace
stackTrace
)
→
FutureOr
<
void
>
If operation on resource throws an exception, this method will be called to release any system resource such io, socket, binding with the resource. Then discard this resource.
onReset
(
)
→
FutureOr
<
void
>
Reset the resource state when the resource is returned.
toString
(
)
→
String
A string representation of this object.
inherited
Operators
operator ==
(
Object
other
)
→
bool
The equality operator.
inherited
nomiuo_pool package
documentation
nomiuo_pool
PoolResource<T> class
nomiuo_pool library