Type-aware Publication etc (static typing) (#43)

* implemented

* format

* add missing type
This commit is contained in:
Hiroshi Horie
2021-12-01 12:15:09 +07:00
committed by GitHub
parent 004f8c7fdb
commit 44864ff525
5 changed files with 25 additions and 18 deletions
+1 -2
View File
@@ -69,8 +69,7 @@ class _ControlsWidgetState extends State<ControlsWidget> {
void _toggleCamera() async {
//
final track =
participant.videoTracks.firstOrNull?.track as LocalVideoTrack?;
final track = participant.videoTracks.firstOrNull?.track;
if (track == null) return;
try {