dart-league / validators

:turtle: String validation and sanitization for Dart.
https://pub.dartlang.org/packages/validators
MIT License
82 stars 27 forks source link

Rename isNull to isNullOrEmpty #21

Open subzero911 opened 4 years ago

subzero911 commented 4 years ago

Because it does not only check if str == null but also checks if str.length == 0 (you could also refactor and use a built-in str.isEmpty instead of direct length accessing)