mailToMatcher function

MatchText mailToMatcher({
  1. TextStyle? style,
})

Implementation

MatchText mailToMatcher({
  final TextStyle? style,
}) =>
    MatchText(
      onTap: (mail) async {
        final url = Uri(scheme: 'mailto', path: mail);
        if (await canLaunchUrl(url)) {
          await launchUrl(url);
        }
      },
      pattern: regexEmail,
      style: style,
    );