defaultPasswordValidator static method

String? defaultPasswordValidator(
  1. String? value
)

Implementation

static String? defaultPasswordValidator(String? value) {
  if (value == null || value.isEmpty || value.length <= 2) {
    return 'Password is too short!';
  }
  return null;
}