Catch integer property value from dartObject
int? getIntValue(DartObject obj, String name) => ifExist(obj, name) ? obj.getField(name)!.toIntValue() : null;