refactor: Add more linter rules
This commit is contained in:
parent
1cd3a91037
commit
7a1eded1bb
5 changed files with 28 additions and 11 deletions
|
|
@ -147,7 +147,7 @@ class MyCallingPage extends State<Calling> {
|
|||
|
||||
MediaStream? get remoteStream {
|
||||
if (call.getRemoteStreams.isNotEmpty) {
|
||||
return call.getRemoteStreams[0].stream!;
|
||||
return call.getRemoteStreams.first.stream!;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
@ -327,7 +327,7 @@ class MyCallingPage extends State<Calling> {
|
|||
void _switchCamera() async {
|
||||
if (call.localUserMediaStream != null) {
|
||||
await Helper.switchCamera(
|
||||
call.localUserMediaStream!.stream!.getVideoTracks()[0],
|
||||
call.localUserMediaStream!.stream!.getVideoTracks().first,
|
||||
);
|
||||
}
|
||||
setState(() {});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue