addZeroPrefix method
Validate given int is not null and returns given value if null.
Implementation
String? addZeroPrefix() {
if (isNull()) {
return null;
}
if ((this!) < 10) {
return '0$this';
} else {
return toString();
}
}
Validate given int is not null and returns given value if null.
String? addZeroPrefix() {
if (isNull()) {
return null;
}
if ((this!) < 10) {
return '0$this';
} else {
return toString();
}
}