isStrongPassword property

bool get isStrongPassword

Validates a strong password (8–16 chars, upper, lower, number, special).

Implementation

bool get isStrongPassword {
  if (isNullOrEmpty) return false;
  return RegExp(r'^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,16}$')
      .hasMatch(this!);
}