isStrongPassword static method

bool isStrongPassword(
  1. String password
)

Implementation

static bool isStrongPassword(String password) {
  final regex = RegExp(
      r'^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$'
  );
  return regex.hasMatch(password);
}