Ipsum constructor

Ipsum({
  1. bool startWithLorem = false,
  2. Encoding encoding = utf8,
  3. File? file,
  4. Set<String>? sentenceDelimiters,
})

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());
  }
}