Paragraph.sealed constructor

  1. @visibleForTesting
Paragraph.sealed({
  1. required List<Line> lines,
  2. required ParagraphType type,
  3. Map<String, dynamic>? blockAttributes,
})

Implementation

@visibleForTesting
Paragraph.sealed({
  required List<Line> lines,
  required this.type,
  this.blockAttributes,
})  : _lines = List<Line>.from(lines),
      id = nanoid(8),
      _sealed = true;