An interface for resources (such as native FFI memory wrappers, file handles, or external graphics/numerical buffers) that can be explicitly disposed and automatically tracked by ResourceScope.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Whether this resource has already been disposed.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
detachFromScope(
) → ScopedResource - Removes this resource from its current automatic ResourceScope so it survives beyond the scope's lifetime.
-
detachToParentScope(
) → ScopedResource - Detaches this resource from the current inner ResourceScope and promotes it to the parent outer scope (if one exists).
-
dispose(
) → void - Explicitly releases native memory or resources immediately.
-
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