Skip to content

Commit cb94fb7

Browse files
committed
Add missing onDispose tie-in
1 parent e9c9dbb commit cb94fb7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/src/html_parser.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@ class _HtmlParserState extends State<HtmlParser> {
132132
);
133133
}
134134

135+
@override
136+
void dispose() {
137+
for (var e in widget.extensions) {
138+
e.onDispose();
139+
}
140+
super.dispose();
141+
}
142+
135143
/// Converts the tree of Html nodes into a simplified StyledElement tree
136144
void lexHtmlTree() {
137145
tree = StyledElement(

0 commit comments

Comments
 (0)