Explorar el Código

Fix onError issue.

Justin hace 2 años
padre
commit
1d7e0aed21
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      lib/us/vid_us_data_stream_reader.dart

+ 2 - 2
lib/us/vid_us_data_stream_reader.dart

@@ -32,9 +32,9 @@ class VidUsDataStreamReader {
     _buffer = Uint8List.fromList(_data).buffer;
   }
 
-  void onStreamError(String msg) {
+  void onStreamError(msg) {
     _error = true;
-    _errorMsg = msg;
+    _errorMsg = msg.toString();
   }
 
   void onStreamDone() {