isStrongPassword method

bool isStrongPassword()

Checks if the string is a strong password

Implementation

bool isStrongPassword() =>
    length >= 8 &&
    RegExp(r'[A-Z]').hasMatch(this) &&
    RegExp(r'[a-z]').hasMatch(this) &&
    RegExp(r'[0-9]').hasMatch(this) &&
    RegExp(r'[!@#\$&*~]').hasMatch(this);