diff --git a/packages/flutter_webrtc/example/flutter_webrtc_demo/lib/src/call_sample/signaling.dart b/packages/flutter_webrtc/example/flutter_webrtc_demo/lib/src/call_sample/signaling.dart index bf068a71d..fc3fdb1fe 100644 --- a/packages/flutter_webrtc/example/flutter_webrtc_demo/lib/src/call_sample/signaling.dart +++ b/packages/flutter_webrtc/example/flutter_webrtc_demo/lib/src/call_sample/signaling.dart @@ -49,7 +49,7 @@ class Signaling { SimpleWebSocket? _socket; final BuildContext? _context; final String _host; - final int _port = 8086; + final _port = 8086; Map? _turnCredential; final Map _sessions = {}; MediaStream? _localStream; @@ -511,10 +511,8 @@ class Signaling { Future _createDataChannel(Session session, {label = 'fileTransfer'}) async { - var dataChannelDict = RTCDataChannelInit() - ..maxRetransmits = 30; - var channel = - await session.pc!.createDataChannel(label, dataChannelDict); + var dataChannelDict = RTCDataChannelInit()..maxRetransmits = 30; + var channel = await session.pc!.createDataChannel(label, dataChannelDict); _addDataChannel(session, channel); }