StoryblokRichText constructor

StoryblokRichText({
  1. Key? key,
  2. required List<RichTextContainer> content,
  3. void onTapLink(
    1. Link
    )?,
  4. required BlockBuilder blockBuilder,
  5. TextAlign textAlign = TextAlign.start,
  6. TextStyle textStyleOverrides(
    1. RichTextLeafMarkable
    )?,
})

Implementation

StoryblokRichText({
  super.key,
  required this.content,
  void Function(Link)? onTapLink,
  required BlockBuilder blockBuilder,
  this.textAlign = TextAlign.start,
  TextStyle Function(RichTextLeafMarkable)? textStyleOverrides,
}) : _contentData = _StoryblokRichTextContentData(
        onTapLink: onTapLink,
        buildBlok: blockBuilder,
        textStyleOverrides: textStyleOverrides,
      );