EzLink constructor

EzLink({
  1. required String text,
  2. required dynamic action()?,
  3. TextStyle? style,
  4. required String semanticsLabel,
})

Creates a TextSpan with an internal link via TapGestureRecognizer See EzWebLink for making extertnal links

Requires semanticsLabel to enforce accessibility

Implementation

EzLink({
  required String text,
  required Function()? action,
  TextStyle? style,
  required String semanticsLabel,
}) : super(
        text: text,
        recognizer: new TapGestureRecognizer()..onTap = action,
        style: style,
        semanticsLabel: semanticsLabel,
      );