8000 Added label as read only property · obshksw/flutter-webrtc@9cd4e96 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9cd4e96

Browse files
authored
Added label as read only property
The https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel specification provides read-only label for the data channel. Added a getter to get the label
1 parent f39894a commit 9cd4e96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/rtc_data_channel.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ class RTCDataChannel {
8686
/// Get current state.
8787
RTCDataChannelState get state => _state;
8888

89+
/// Get label.
90+
String get label => _label;
91+
8992
/// Event handler for datachannel state changes.
9093
/// Assign this property to listen for state changes.
9194
/// Will be passed one argument, [state], which is an [RTCDataChannelState].

0 commit comments

Comments
 (0)
0