getInt property
int?
get
getInt
转换为一个可能为空的int类型
Implementation
int? get getInt {
if (rawValue is bool) return rawValue ? 1 : 0;
return num.tryParse(stringValue)?.toInt();
}
转换为一个可能为空的int类型
int? get getInt {
if (rawValue is bool) return rawValue ? 1 : 0;
return num.tryParse(stringValue)?.toInt();
}