specialCharacters method

String specialCharacters(
  1. int length
)

Generate random string by special characters.

Implementation

String specialCharacters(int length) {
  const chars = r'[!@#$%^&*()-+,.?:{}|<>_=]';

  return string(chars, length);
}