Skip to content

Commit d55aa45

Browse files
committed
Add check for null onLinkTap callback
1 parent b8644ec commit d55aa45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rich_text_parser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class LinkTextSpan extends TextSpan {
4747
children: children ?? <TextSpan>[],
4848
recognizer: TapGestureRecognizer()
4949
..onTap = () {
50-
onLinkTap(url);
50+
onLinkTap?.call(url);
5151
},
5252
);
5353
}

0 commit comments

Comments
 (0)