isStrongPassword property
bool
get
isStrongPassword
Returns true if this is a strong password:
at least 8 characters, one uppercase, one lowercase, one digit,
one special character.
Implementation
bool get 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);