Convert value to integer if defined, else return undefined. @param value value converted
int? toInteger(String? value) { if (value == null) { return null; } return int.tryParse(value); }