Ipsum class
A helper class for the lorem ipsum generation. It reads lines from a constant of De finibus bonorum et malorum.
If you pass a file
, it will randomly select the output from it.
You can also provide an encoding which will be used when opening the file for the initial read
You can set whether or not the first words should be Lorem ipsum dolor sit amet
with startWithLorem
By default, sentences and paragraphs are delimited with {".", "?", "!"}
. Change these with sentenceDelimiters
Constructors
Properties
- encoding → Encoding
-
Defaults to
utf8
final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sentenceDelimiters
↔ Set<
String> -
By default, sentences and paragraphs are delimited with
{".", "?", "!"}
.getter/setter pair - startWithLorem → bool
-
Defaults to
false
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paragraphs(
[int count = 3]) → String -
Read
count
paragraphs from the specified file -
sentences(
[int count = 5]) → String -
Read
count
sentences from the specified file -
toString(
) → String -
A string representation of this object.
inherited
-
words(
[int count = 100]) → String -
Read
count
words from the specified file
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited