toEither method
Implementation
AsyncResult<T> toEither() async {
try {
return Either.right(await this);
} on Exception catch (e) {
return Either.left(e);
}
}
AsyncResult<T> toEither() async {
try {
return Either.right(await this);
} on Exception catch (e) {
return Either.left(e);
}
}