Skip to content

Commit c287abe

Browse files
committed
Add support for null checks for condition operators.
1 parent f68839f commit c287abe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/api/typed_value.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ extension TypedStringExt on String {
8888
/// Converts given string to a typed value derived from the original value
8989
/// of this string.
9090
Object? parsedValue() {
91+
if(this == 'null') return null;
9192
return toInt() ?? toDouble() ?? toBool() ?? toList() ?? toMap() ?? this;
9293
}
9394

0 commit comments

Comments
 (0)