Skip to content

Commit 1087afc

Browse files
authored
refactor: negate isNullOrEmpty in isNotNullOrEmpty (#34)
1 parent efd2f15 commit 1087afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/extensions/string_extensions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ extension StringExNullable on String? {
66
bool get isNullOrBlank =>
77
this == null || this!.isEmpty || this!.trim().isEmpty;
88

9-
bool get isNotNullOrEmpty => this == null || this!.isNotEmpty;
9+
bool get isNotNullOrEmpty => !isNullOrEmpty;
1010
}
1111

1212
extension StringEx on String {

0 commit comments

Comments
 (0)