fix dart bug

fixes `The argument type 'Utf8Decoder' can't be assigned to the parameter type 'StreamTransformer<Uint8List, dynamic>'.` on `flutter run`
This commit is contained in:
Jack Robison 2019-07-11 17:15:51 -04:00
parent 5bceb06fc5
commit 910999e7e4
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ class LoadRequest {
completer.future.whenComplete(() => timer.stop()); completer.future.whenComplete(() => timer.stop());
try { try {
Socket.connect(this.host, this.port).then((socket) { Socket.connect(this.host, this.port).then((socket) {
socket.transform(utf8.decoder).listen((r) { utf8.decoder.bind(socket).listen((r) {
if (r.contains('"jsonrpc": "2.0", "result": ')) { if (r.contains('"jsonrpc": "2.0", "result": ')) {
socket.close(); socket.close();
completer.complete(); completer.complete();

View file

@ -136,7 +136,7 @@ packages:
name: protobuf name: protobuf
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.13.14" version: "0.13.15"
quiver: quiver:
dependency: transitive dependency: transitive
description: description: