cpf static method

use to format cpf fields

TextFormField(
  autovalidateMode: AutovalidateMode.onUserInteraction,
  inputFormatters: [Mask.cpf()],
),

Implementation

static TextInputFormatter cpf() {
  return GenericMask(mask: ['###.###.###-##']);
}