fix a type cast error

pull/2/head
fuwa 5 years ago
parent 0031ce7053
commit c323017c7b

@ -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;