validatePassword method
- BuildContext context,
- String? value
Validate password change
Implementation
String? validatePassword(BuildContext context, String? value) {
// validate client
if (value == null || value.isEmpty) {
return AppLocalizations.of(context)!.signUp_validate_password_empty;
}
// validate from server
return _error['password'];
}