FParagraphRenderWidget constructor
const
FParagraphRenderWidget({
- Key? key,
- required InlineContainerNode node,
- required ParagraphRegistry registry,
- double lineHeight = 1.15,
- TextAlign textAlign = TextAlign.left,
- bool shrinkWrap = false,
- ParagraphStyle? paragraphStyle,
- Color? defaultTextColor,
- Color? cursorColor,
- Color? selectionColor,
- Color? linkColor,
- required String anchorFragmentId,
- required int anchorLocalOffset,
- String? focusFragmentId,
- int? focusLocalOffset,
- String? selAnchorFragmentId,
- int? selAnchorLocalOffset,
- String? selFocusFragmentId,
- int? selFocusLocalOffset,
- List<
SpellAnnotation> spellAnnotations = const [], - List<
Map< commentAnnotations = const [],String, dynamic> > - String? selectedCommentId,
- 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 [],
});