validatePassword static method

String? validatePassword(
  1. String value
)

Implementation

static String? validatePassword(String value) {
  appLogsNS("validatePassword : $value ");

  if (value.trim().isEmpty) return enterPassword;

  if (hasMatch(pattern: passwordPattern, value: value)) return null;

  return passwordValidationMsg;
}