int? tryParseStringToInt(String? value) { final dValue = tryParseStringToDouble(value); if (dValue is double) return dValue.toInt(); return null; }