leftPadWithZeros function

String leftPadWithZeros(
  1. String cep
)

Implementation

String leftPadWithZeros(String cep) {
  return ''.padLeft(CEP_SIZE - cep.length).replaceAll(' ', '0') + cep;
}