LinkTextSpan constructor

LinkTextSpan({
  1. TextStyle? style,
  2. required String url,
  3. String? text,
})

Implementation

LinkTextSpan({super.style, required String url, String? text})
    : super(
          text: text ?? url,
          recognizer: TapGestureRecognizer()
            ..onTap = () {
              launchUrl(Uri.parse(url));
            });