convertInt function
Implementation
int? convertInt(var src) {
if (src == null) return null;
if (src is int) return src;
if (src is String) return int.parse(src);
throw Exception("Not integer");
}
int? convertInt(var src) {
if (src == null) return null;
if (src is int) return src;
if (src is String) return int.parse(src);
throw Exception("Not integer");
}