more docs & clean up

This commit is contained in:
Hiroshi Horie
2021-12-23 03:48:19 +07:00
parent fc2890e94e
commit b8e50f9276
9 changed files with 59 additions and 62 deletions
+17 -3
View File
@@ -1,18 +1,32 @@
import 'dart:ui';
import 'package:meta/meta.dart';
@internal
@immutable
class RendererVisibility {
final String rendererId;
final String trackId;
final bool visible;
final Size size;
RendererVisibility({
const RendererVisibility({
required this.rendererId,
required this.trackId,
required this.visible,
required this.size,
});
}
}
@internal
@immutable
class RTCOfferOptions {
final bool iceRestart;
const RTCOfferOptions({
this.iceRestart = false,
});
Map<String, dynamic> toMap() => <String, dynamic>{
if (iceRestart) 'iceRestart': true,
};
}