FParagraphRenderWidget constructor

const FParagraphRenderWidget({
  1. Key? key,
  2. required InlineContainerNode node,
  3. required ParagraphRegistry registry,
  4. double lineHeight = 1.15,
  5. TextAlign textAlign = TextAlign.left,
  6. bool shrinkWrap = false,
  7. ParagraphStyle? paragraphStyle,
  8. Color? defaultTextColor,
  9. Color? cursorColor,
  10. Color? selectionColor,
  11. Color? linkColor,
  12. required String anchorFragmentId,
  13. required int anchorLocalOffset,
  14. String? focusFragmentId,
  15. int? focusLocalOffset,
  16. String? selAnchorFragmentId,
  17. int? selAnchorLocalOffset,
  18. String? selFocusFragmentId,
  19. int? selFocusLocalOffset,
  20. List<SpellAnnotation> spellAnnotations = const [],
  21. List<Map<String, dynamic>> commentAnnotations = const [],
  22. String? selectedCommentId,
  23. List<Widget> children = const [],
})

Implementation

const FParagraphRenderWidget({
  super.key,
  required this.node,
  required this.registry,
  this.lineHeight = 1.15,
  this.textAlign = TextAlign.left,
  this.shrinkWrap = false,
  this.paragraphStyle,
  this.defaultTextColor,
  this.cursorColor,
  this.selectionColor,
  this.linkColor,
  required this.anchorFragmentId,
  required this.anchorLocalOffset,
  this.focusFragmentId,
  this.focusLocalOffset,
  // Selection parameters (optional)
  this.selAnchorFragmentId,
  this.selAnchorLocalOffset,
  this.selFocusFragmentId,
  this.selFocusLocalOffset,
  this.spellAnnotations = const [],
  this.commentAnnotations = const [],
  this.selectedCommentId,
  super.children = const [],
});