validatePassword method

String? validatePassword(
  1. BuildContext context,
  2. 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'];
}