Resource mixin
A resource that needs to be disposed (cleaned up)
since 0.8.0
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(
) → Future< void> -
Stops, cancels, and cleans up the resource.
Should be called in a
finally
block. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
using<
R, S extends Resource> (Future< R> fn(S)) → Future<R> - Calls ResourceUtils.using on this.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited