recognizer method

TapGestureRecognizer recognizer(
  1. String url
)

Implementation

TapGestureRecognizer recognizer(String url) {
  return new TapGestureRecognizer()
    ..onTap = () {
      if (url.startsWith("http://") || url.startsWith("https://")) {
        _launchURL(url);
      } else {
        _launchOtherURL(url);
      }
    };
}