strongPassword static method

String? strongPassword(
  1. String? value, {
  2. String message = 'Password must be at least 8 characters and include a number',
})

Validates a strong password.

Implementation

static String? strongPassword(
  String? value, {
  String message =
      'Password must be at least 8 characters and include a number',
}) {
  if (value == null || value.trim().isEmpty) return null;
  return Validators.isStrongPassword(value) ? null : message;
}