Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How should I use stream.cast instead of typed?

Tags:

flutter

dart

the problem

so i'm getting the error shown in the image and my question is: How should I use stream.cast in this case?

like image 360
Fenerbahce Avatar asked Dec 05 '22 08:12

Fenerbahce


1 Answers

Try to change this :

var stream  = new http.ByteStream(DelegatingStream.typed(_image.openRead()));

To this :

var stream  = new http.ByteStream(_image.openRead());
stream.cast();
like image 159
Ignatius Chandra Avatar answered Feb 01 '23 09:02

Ignatius Chandra