How can I return a value from a download
function that looks something like this:
Either<sucess, failure> download() {
Http.streamedResponse response;
response.stream.listen((chunk) {
sink.add(chunk);
}
}
// on error, return failure
// on done, return success