Ipsum constructor
Ipsum({})
Implementation
Ipsum({
this.startWithLorem = false,
this.encoding = utf8,
File? file,
Set<String>? sentenceDelimiters,
}) {
this.sentenceDelimiters = sentenceDelimiters ?? {".", "?", "!"};
/// Reads the given number of words from the specified open file or the [definibus] string.
if (file == null) {
_lines = definibus.split('\n').map((e) => e.trim());
} else {
_lines = file.readAsLinesSync(encoding: encoding).map((e) => e.trim());
}
}