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
Error: The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't.
var session = parse(description.sdp);
it shows error on sdp_transform: ^0.3.0
The text was updated successfully, but these errors were encountered:
cottheta
changed the title
parse(description.sdp) shows error - sdp_transform: ^0.3.0
parse(description.sdp) shows error on sdp_transform: ^0.3.0
Jun 5, 2021
You have to add null safety to the code.
Like this:
void _createOffer () async{
RTCSessionDescription description = await _peerConnection.createOffer({'offerToReceiveVideo': 1});
var session = parse(description.sdp!);
print(json.encode(session));
_offer = true;
Error: The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't.
var session = parse(description.sdp);
it shows error on sdp_transform: ^0.3.0
The text was updated successfully, but these errors were encountered: