FParagraphRenderWidget constructor

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

Implementation

const FParagraphRenderWidget({
  super.key,
  required this.node,
  required this.registry,
  this.styleHooks = const [],
  this.suggestionStyleHook = const SuggestionStyleHook(),
  this.lineHeight = 1.15,
  this.textAlign = TextAlign.left,
  this.shrinkWrap = false,
  this.paragraphStyle,
  this.defaultTextColor,
  this.cursorColor,
  this.selectionColor,
  this.linkColor,
  this.imeCompositionColor,
  required this.anchorFragmentId,
  required this.anchorLocalOffset,
  this.focusFragmentId,
  this.focusLocalOffset,
  this.selAnchorFragmentId,
  this.selAnchorLocalOffset,
  this.selFocusFragmentId,
  this.selFocusLocalOffset,
  this.commentAnnotations = const [],
  this.selectedCommentId,
  this.imePreeditText = '',
  this.imePreeditFragmentId = '',
  this.imePreeditLocalOffset = 0,
  this.isSuggestionMode = false,
  super.children = const [],
});