addZeroPrefix property

String? get addZeroPrefix

Validate given int is not null and returns given value if null.

Implementation

String? get addZeroPrefix {
  if (isEmptyOrNull) {
    return null;
  }
  if ((this ?? 0) < 10) {
    return '0$this';
  } else {
    return toString();
  }
}