flatMap<U> method
Result<U>
flatMap<U>(
- Result<
U> transform(- V
Implementation
$async.Result<U> flatMap<U>($async.Result<U> Function(V) transform) {
if (isValue) {
return transform(asValue!.value);
} else {
return $async.Result.error(asError!.error);
}
}