find static method

Future<List<LinkifyLink>> find(
  1. String text
)

Finds links in given text and returns them as LinkifyLink list

Implementation

static Future<List<LinkifyLink>> find(String text) async {
  final res = await _channel.invokeMethod('findLinks', text);
  final resList = List<Map>.from(res as List);
  return resList
      .map((e) => LinkifyDto.fromMap(Map<String, dynamic>.from(e)).toLink())
      .toList();
}