password property

String password
getter/setter pair

Password (at least 8 characters, 1 uppercase, 1 number, 1 special character)

Implementation

static String password =
    r'^(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$';