File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class Html extends StatelessWidget {
19
19
final EdgeInsetsGeometry padding;
20
20
final Color backgroundColor;
21
21
final TextStyle defaultTextStyle;
22
- final Function onLinkTap;
22
+ final OnLinkTap onLinkTap;
23
23
final bool renderNewlines;
24
24
25
25
/// Either return a custom widget for specific node types or return null to
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import 'package:html/parser.dart' as parser;
3
3
import 'package:html/dom.dart' as dom;
4
4
5
5
typedef CustomRender = Widget Function (dom.Node node, List <Widget > children);
6
+ typedef OnLinkTap = void Function (String url);
6
7
7
8
class HtmlParser {
8
9
HtmlParser ({
@@ -13,7 +14,7 @@ class HtmlParser {
13
14
});
14
15
15
16
final double width;
16
- final Function onLinkTap;
17
+ final OnLinkTap onLinkTap;
17
18
final bool renderNewlines;
18
19
final CustomRender customRender;
19
20
You can’t perform that action at this time.
0 commit comments