toResult method
Implementation
Future<AsyncResult<T>> toResult() async {
try {
return AsyncResult.success(await this);
} catch (e, stackTrace) {
return AsyncResult.failure(e, stackTrace);
}
}
Future<AsyncResult<T>> toResult() async {
try {
return AsyncResult.success(await this);
} catch (e, stackTrace) {
return AsyncResult.failure(e, stackTrace);
}
}