We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1c0c8f commit 9a10970Copy full SHA for 9a10970
lib/src/api/typed_value.dart
@@ -89,7 +89,12 @@ extension TypedStringExt on String {
89
/// of this string.
90
Object? parsedValue() {
91
if (this == 'null') return null;
92
- return toInt() ?? toDouble() ?? toBool() ?? toList() ?? toMap() ?? this;
+ return toInt() ??
93
+ toDouble() ??
94
+ toBool() ??
95
+ toList() ??
96
+ toMap() ??
97
+ (isEmpty ? null : this);
98
}
99
100
/// Converts given string to a known type.
0 commit comments