mirror of
https://github.com/wownero/cyberwow.git
synced 2026-10-25 10:18:35 +01:00
fix a type cast error
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user