onTapCallback method Null safety

Future<bool> onTapCallback(
  1. String url
)

Calls HtmlWidget.onTapUrl with url.

Returns true if there is a callback and it has handled the tap.

Implementation

Future<bool> onTapCallback(String url) async {
  final callback = _widget?.onTapUrl;
  return callback != null ? callback(url) : false;
}