ClosableResource class Null safety

A Resource which can be explicitly closed.

Implemented types
Implementers

Constructors

ClosableResource()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isClosed bool
Whether this resource has been closed.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

close() Future<void>
Closes this resource and frees the resources it uses. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited