refactor: Add more linter rules

This commit is contained in:
Christian Kußowski 2026-02-19 09:19:05 +01:00
commit 7a1eded1bb
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
5 changed files with 28 additions and 11 deletions

View file

@ -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(() {});