cword function
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);
}