password function

String? password(
  1. String? value
)

Implementation

String? password(String? value) {
  if (value == null || value.isEmpty) {
    return t.password.enter;
  }
  if (value.length < 6) {
    return t.password.tooShort;
  }
  return null;
}