Try<T> class

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

get() → T
map<U>(Method<T, U> f) Try<U>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recover<E extends Exception>(Recovery<T> recovery) Try<T>
toOptional() Optional<T>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

of<T>(Supplier<T> supplier) Try<T>
run(Supplier<void> supplier) Try<void>
withResource<T>(T resource) Try<T>