An interface that defines a disposable resource.
A disposable resource is an object that implements this interface and provides a method to dispose of its resources.
The IDisposable interface is typically used to implement the dispose method in a class that manages resources, such as a database connection or a file reader. The dispose method is called automatically when the object is no longer needed, allowing the resources to be released and cleaned up.
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 -
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