sentences method

List<String> sentences({
  1. int nSentence = 5,
  2. int nWords = 10,
})
inherited

Generates fake List of sentences Example:

faker.sentences(nSentence:2, nWords: 3) // [lorem ipsum test, sample test data]

Implementation

List<String> sentences({int nSentence = 5, int nWords = 10}) {
  if (nSentence < 0) return <String>[];
  return <String>[
    for (int i = 0; i < nSentence; i++) sentence(nWords: nWords)
  ];
}