HttpRequest
in Dart, is a Stream<List<int>>
, how to get the binary content as List<int>
?
I tried:
request.toList().then((data) {
// but data is a List<List<int>> !!!
});
It seems I should not use toList
. What's the correct method I should use?