Skip to content

Conversation

@victortive
Copy link
Contributor

@victortive victortive commented Dec 27, 2024

isEmpty and isNotEmpty are more readable ways of expressing whether a List or String is empty or not empty compared to comparisons I see like

if (sockets is List && sockets!.length > 0)
if (body.length >= 1)

are more readable like this

if (sockets is List && sockets!.length.isNotEmpty)
if (body.length.isNotEmpty)

@mikaelwills mikaelwills merged commit 3d34f90 into flutter-webrtc:main Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants