An abstract class that provides a contract for disposing resources.
Classes that implement/mixin Disposable should override the dispose method
to release or cleanup resources such as file handles, database connections,
subscriptions, etc. This is crucial for preventing resource leaks in
applications.
Constructors
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
-
dispose(
) → void - Releases or cleans up resources used by the object.
-
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