You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
signalr netcore 1.3.6
hello.
in hub_connection class and in method _replaceStreamingParams and another method created the variable as this format:
final List<Stream> streams = [];
and the next line call streams[streamId].
this line errored: RangeError (index): Valid value range is empty: 1.
Because the streams variable is empety list and no item has been added to it yet, and it is not even growable.
you must make streams variable like this:
final List<Stream> streams = List.empty(growable: true);
and Instead streams[streamId] set streams.add.
The text was updated successfully, but these errors were encountered:
signalr netcore 1.3.6
hello.
in hub_connection class and in method _replaceStreamingParams and another method created the variable as this format:
final List<Stream> streams = [];
and the next line call streams[streamId].
this line errored: RangeError (index): Valid value range is empty: 1.
Because the streams variable is empety list and no item has been added to it yet, and it is not even growable.
you must make streams variable like this:
final List<Stream> streams = List.empty(growable: true);
and Instead streams[streamId] set streams.add.
The text was updated successfully, but these errors were encountered: