intValue static method
Implementation
static int? intValue(Map<String,dynamic>? info, String key, [bool strictType = true]) {
if (info == null) { return null; }
final value = info[key];
if (value != null && value is int) {
return value;
}
if (strictType == false) {
if (value != null && value is String) {
return int.parse(value);
}
}
return null;
}