Удалите .0 Flutter

val.toInt()
loonix