// だめ
final stream = http.ByteStream(DelegatingStream.typed(image.openRead()))
// ok
final stream = http.ByteStream(image.openRead())..cast<dynamic>();
これでいけました
参考記事
How do method cascades work exactly in dart?
// だめ
final stream = http.ByteStream(DelegatingStream.typed(image.openRead()))
// ok
final stream = http.ByteStream(image.openRead())..cast<dynamic>();
これでいけました
How do method cascades work exactly in dart?
コメントを残す