validatePassword method

bool validatePassword()

Implementation

bool validatePassword() {
  return RegExp(
      r'^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[!@#\$&*~]).{8,}$')
      .hasMatch(this);
}