cword function

String cword({
  1. String pool = chineseCharacters,
  2. int min = 1,
  3. int? max,
})

return a random chinese word.

default pool is commonly used 500 Chinese characters. you can provide pool string to override default. while max is null, min is the length of result. or the length is random between min to max.

Implementation

String cword({String pool = chineseCharacters, int min = 1, int? max}) {
  return string(pools: [], self: pool, min: min, max: max);
}