randEmotion function
List<String>
randEmotion({
- WordLanguage? language,
- int count = 1,
- RandRealism realism = RandRealism.real,
- RandVocabulary vocabulary = RandVocabulary.full,
- int? minLength,
- int? maxLength,
- String? startsWith,
- bool unique = false,
- Random? random,
What someone feels, from joy to a quiet regret.
randWord with the theme already chosen; every other parameter is the same.
For the detail form, pass WordTheme.emotion to randWordDetails — Dart has
no overloads, and a second function per theme would be a second wall of them.
randEmotion(language: WordLanguage.ko, count: 3); // [그리움, 설렘, 안도]
randEmotion(language: WordLanguage.en, count: 3); // [Longing, Delight, Relief]
Implementation
List<String> randEmotion({
WordLanguage? language,
int count = 1,
RandRealism realism = RandRealism.real,
RandVocabulary vocabulary = RandVocabulary.full,
int? minLength,
int? maxLength,
String? startsWith,
bool unique = false,
/// Where the randomness comes from: `Random.secure()` for a value nobody may
/// predict, `Random(42)` for one that has to come out the same every run.
Random? random,
}) => randWord(
language: language,
theme: WordTheme.emotion,
count: count,
realism: realism,
vocabulary: vocabulary,
minLength: minLength,
maxLength: maxLength,
startsWith: startsWith,
unique: unique,
random: random,
);