Skip to main content
1

📰 Text & Content

loremWords
String
Generates a string with [this] number of Lorem Ipsum words.
final text = 10.loremWords;
// text might be: "Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod"
loremParagraphs
String
Generates [this] number of Lorem Ipsum paragraphs. Each paragraph is approximately 40 words long and separated by two newline characters (\n\n).
final paragraphs = 3.loremParagraphs;
// Returns three paragraphs of text separated by blank lines.
randomString
String
Generates a random alphanumeric string of [this] length (mixed case letters and numbers).
final apiKey = 32.randomString;
// apiKey might be: "a8JfKz92B4mP1yQ0sR7tV3uW6xE5"
2

🖼️ Assets & Utility

placeholderImage({int? height, bool grayscale, int? blur})
String
Generates a versatile placeholder image URL from Lorem Picsum, using the integer as the width.
// Rectangle, 400x200, Grayscale:
Image.network(400.placeholderImage(height: 200, grayscale: true));