File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,29 @@ class Html extends StatelessWidget {
73
73
Html .fromDom ({
74
74
Key ? key,
75
75
GlobalKey ? anchorKey,
76
- @required this .document,
76
+ @required dom.Document ? document,
77
+ this .onLinkTap,
78
+ this .onAnchorTap,
79
+ this .customRender = const {},
80
+ this .customImageRenders = const {},
81
+ this .onCssParseError,
82
+ this .onImageError,
83
+ this .onMathError,
84
+ this .shrinkWrap = false ,
85
+ this .onImageTap,
86
+ this .tagsList = const [],
87
+ this .style = const {},
88
+ this .navigationDelegateForIframe,
89
+ }) : data = null ,
90
+ assert (document != null ),
91
+ this .document = document! .documentElement,
92
+ _anchorKey = anchorKey ?? GlobalKey (),
93
+ super (key: key);
94
+
95
+ Html .fromElement ({
96
+ Key ? key,
97
+ GlobalKey ? anchorKey,
98
+ this .document,
77
99
this .onLinkTap,
78
100
this .onAnchorTap,
79
101
this .customRender = const {},
You can’t perform that action at this time.
0 commit comments