singleParagraphWithLinkDoc function
Implementation
MutableDocument singleParagraphWithLinkDoc() => MutableDocument(
nodes: [
ParagraphNode(
id: "1",
text: AttributedText(
// "link" is 26->30
"This paragraph includes a link that the user can tap",
AttributedSpans(
attributions: [
const SpanMarker(
attribution: LinkAttribution("https://fake.url"),
offset: 26,
markerType: SpanMarkerType.start,
),
const SpanMarker(
attribution: LinkAttribution("https://fake.url"),
offset: 30,
markerType: SpanMarkerType.end,
),
],
),
),
),
],
);