dependencies:# Use the latest version available. Any is just a placeholdervalidatorless:any
TextFormField(
decoration: InputDecoration(
labelText: 'User e-mail',
),
validator: Validatorless.multiple([
Validatorless.email('The field must be an email'),
Validatorless.required('The field is obligatory')
]),
)
or use
TextFormField(
decoration: InputDecoration(
labelText: 'CPF',
),
validator: Validatorless.cpf('CPF not is valid'),
)
Pushes to master run .github/workflows/publish.yml: patch-bump pubspec.yaml (unless the push already changed the version), append CHANGELOG.md, commit with [skip ci], tag (1.3.1, no v prefix), create a GitHub Release, and dart pub publish --force.
Add a repository secret named PUB_CREDENTIALS_JSON (Settings → Secrets and variables → Actions) containing the full contents of the Dart credentials file after dart pub login:
Linux: ~/.pub-cache/credentials.json or ~/.config/dart/pub-credentials.json