fix null check in toBoolean string extension

This commit is contained in:
J. A. Messias 2024-12-03 12:54:56 -03:00
parent d7556f23fd
commit f964598d07
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
extension StringNullableExtensions on String? {
bool toBoolean() {
if (this == null) return false;
return this!.toLowerCase() == 'true';
}
}