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
staticObject?_reconstructPacket(Object data, List<List> buffers) {
if (data isList) {
final _data = data;
int i =0;
_data.forEach((v) {
_data[i++] =_reconstructPacket(v, buffers);
});
return _data;
} elseif (data isMap) {
final _data = data;
if ('${_data[KEY_PLACEHOLDER]}'.toLowerCase() =='true') {
final knum = _data[KEY_NUM]!;
intnum= knum isint? knum :int.parse(knum).toInt();
returnnum>=0&&num< buffers.length ? buffers[num] :null;
}
data.forEach((key, value) {
_data[key] =_reconstructPacket(value, buffers);
});
return _data;
}
return data;
}
I have encountered this error Unhandled Exception: type 'Null' is not a subtype of type 'Object' while receiving acknowledgement from the server. The reason being one of my value of the map is null.
Is it possible if the signature of the function be changed to static Object? _reconstructPacket(Object? data, List buffers) ?
The text was updated successfully, but these errors were encountered:
I have encountered this error Unhandled Exception: type 'Null' is not a subtype of type 'Object' while receiving acknowledgement from the server. The reason being one of my value of the map is null.
Is it possible if the signature of the function be changed to static Object? _reconstructPacket(Object? data, List buffers) ?
The text was updated successfully, but these errors were encountered: