getParagraphsText static method
String
getParagraphsText(
{ - int paragraph = 1,
- int words = 20,
- int noOfNewLine = 1,
- bool withHyphen = false,
- 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;
}