buildTabRecognizer method

GestureRecognizer? buildTabRecognizer(
  1. FlatNodeV3 node
)

Implementation

GestureRecognizer? buildTabRecognizer(FlatNodeV3 node) {
  GestureRecognizer? linkTapRecognizer;

  if (node.linkTarget != null) {
    final String target = node.linkTarget!;

    linkTapRecognizer = TapGestureRecognizer()
      ..onTap = () {
        launchUrl(Uri.parse(target));
      };
  }

  return linkTapRecognizer;
}