ResourceUtils class

Resource and ResourceSync utils

since 0.8.0

Constructors

ResourceUtils()

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

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

Static Methods

using<R, T extends Resource>(T resource, Future<R> fn(T)) Future<R>
Finally Resource.disposes a resource after passing it to fn. Returns the result of fn. See also Resource.using
usingSync<R, T extends ResourceSync>(T resource, R fn(T)) → R
Synchronous version of ResourceUtils.using