You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throwUnimplementedError("Extension `$runtimeType` matched `${context.elementName}` but didn't implement `lex`");
35
+
returnStyledElement(
36
+
node: context.node,
37
+
style:Style(),
38
+
elementClasses: context.classes.toList(),
39
+
elementId: context.id,
40
+
children: children,
41
+
name: context.elementName,
42
+
);
35
43
}
36
44
37
-
// Called before styles are applied to the tree. Default behavior: do nothing;
45
+
/// Called before styles are applied to the tree. Default behavior: do nothing;
38
46
voidbeforeStyle(ExtensionContext context) {}
39
47
40
-
// Called after styling, but before extra elements/whitespace has been
41
-
// removed, margins collapsed, list characters processed, or relative
42
-
// values calculated. Default behavior: do nothing;
48
+
/// Called after styling, but before extra elements/whitespace has been
49
+
/// removed, margins collapsed, list characters processed, or relative
50
+
/// values calculated. Default behavior: do nothing;
43
51
voidbeforeProcessing(ExtensionContext context) {}
44
52
45
-
//The final step in the chain. Converts the StyledElement tree, with its attached `Style` elements, into an `InlineSpan` tree that includes Widget/TextSpans that can be rendered in a RichText widget.
53
+
/// The final step in the chain. Converts the StyledElement tree, with its
54
+
/// attached `Style` elements, into an `InlineSpan` tree that includes
55
+
/// Widget/TextSpans that can be rendered in a RichText widget.
throwUnimplementedError("Extension `$runtimeType` matched `${context.styledElement!.name}` but didn't implement `parse`");
48
58
}
49
59
50
-
//Called when the Html widget is being destroyed. This would be a very good place to dispose() any controllers or free any resources that the extension uses. Default behavior: do nothing.
60
+
/// Called when the Html widget is being destroyed. This would be a very
61
+
/// good place to dispose() any controllers or free any resources that
62
+
/// the extension uses. Default behavior: do nothing.
51
63
voidonDispose() {
52
64
// Subclasses may override this to clean up when the extension is being disposed.
0 commit comments