LinkTextSpan constructor

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

Implementation

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