toInteger method
Implementation
int toInteger() {
if ((this ?? '').isEmpty) {
return 0;
} else {
try {
return double.parse(this!).toInt();
} on Exception {
return 0;
}
}
}
int toInteger() {
if ((this ?? '').isEmpty) {
return 0;
} else {
try {
return double.parse(this!).toInt();
} on Exception {
return 0;
}
}
}