@@ -33,8 +33,8 @@ class Html extends StatelessWidget {
33
33
/// **style** Pass in the style information for the Html here.
34
34
/// See [its wiki page] (https://github.com/Sub6Resources/flutter_html/wiki/Style) for more info.
35
35
Html ({
36
- Key key,
37
- @ required this .data,
36
+ Key ? key,
37
+ required this .data,
38
38
this .onLinkTap,
39
39
this .customRender = const {},
40
40
this .customImageRenders = const {},
@@ -47,13 +47,13 @@ class Html extends StatelessWidget {
47
47
}) : super (key: key);
48
48
49
49
final String data;
50
- final OnTap onLinkTap;
50
+ final OnTap ? onLinkTap;
51
51
final Map <ImageSourceMatcher , ImageRender > customImageRenders;
52
- final ImageErrorListener onImageError;
52
+ final ImageErrorListener ? onImageError;
53
53
final bool shrinkWrap;
54
54
55
55
/// Properties for the Image widget that gets rendered by the rich text parser
56
- final OnTap onImageTap;
56
+ final OnTap ? onImageTap;
57
57
58
58
final List <String > blacklistedElements;
59
59
@@ -67,11 +67,11 @@ class Html extends StatelessWidget {
67
67
/// Decides how to handle a specific navigation request in the WebView of an
68
68
/// Iframe. It's necessary to use the webview_flutter package inside the app
69
69
/// to use NavigationDelegate.
70
- final NavigationDelegate navigationDelegateForIframe;
70
+ final NavigationDelegate ? navigationDelegateForIframe;
71
71
72
72
@override
73
73
Widget build (BuildContext context) {
74
- final double width = shrinkWrap ? null : MediaQuery .of (context).size.width;
74
+ final double ? width = shrinkWrap ? null : MediaQuery .of (context).size.width;
75
75
76
76
return Container (
77
77
width: width,
0 commit comments