getParagraphsText static method

String getParagraphsText({
  1. int paragraph = 1,
  2. int words = 20,
  3. int noOfNewLine = 1,
  4. bool withHyphen = false,
  5. bool withEmoji = false,
})

Implementation

static String getParagraphsText(
    {int paragraph = 1,
      int words = 20,
      int noOfNewLine = 1,
      bool withHyphen = false,
      bool withEmoji=false}) {
  String text = "";
  for (int i = 0; i < paragraph; i++) {
    if (withHyphen)
      text += "\t\t-\t\t";
    else
      text += "\t\t\t\t";
    text += getDummyText(words,withEmoji: withEmoji);
    if (i != paragraph - 1) {
      for (int j = 0; j < noOfNewLine; j++) {
        text += "\n";
      }
    }
  }
  return text;
}