words method Null safety

String words(
  1. int min,
  2. [int? max]
)

Generates a random text that consists of random number of random words separated by spaces.

  • min (optional) a minimum number of words.
  • max a maximum number of words. Returns a random text.