parseMaxAge static method
Implementation
static int? parseMaxAge(Object? value) {
if (value == null) return null;
if (value is int) return value;
if (value is num) return value.toInt();
return int.tryParse(value.toString().trim());
}
static int? parseMaxAge(Object? value) {
if (value == null) return null;
if (value is int) return value;
if (value is num) return value.toInt();
return int.tryParse(value.toString().trim());
}