fix a type cast error

This commit is contained in:
fuwa
2019-11-18 02:44:50 +08:00
parent 0031ce7053
commit c323017c7b
+1 -1
View File
@@ -27,7 +27,7 @@ String pretty(dynamic x) {
}
int asInt(dynamic x) => x ?? 0;
int asInt(dynamic x) => x?.toInt() ?? 0;
bool asBool(dynamic x) => x ?? false;