forceToInt property

int? get forceToInt

将值强制转为int,包括(int,double,bool,string)

String类型将使用num.tryParse(rawValue)尝试转换 bool类型返回 1(true)或0(false)

Implementation

int? get forceToInt => forceToNum?.toInt();