linkifyWithPattern static method

void linkifyWithPattern(
  1. String regex,
  2. String defaultScheme
)

Creates deep links in messages turning the matches into links based on the regex (Android)

Internally uses {@link android.text.util.Linkify#addLinks(Spannable, Pattern, String)} The given regex is converted into a pattern and passed to the addLinks method.

Implementation

static void linkifyWithPattern(String regex, String defaultScheme) {
  _channel.invokeMethod("linkifyWithPattern",
      <String, String>{'regex': regex, 'defaultScheme': defaultScheme});
}