From 3c61dff440eb0ec77755ffa4a4a1904e86d7cc21 Mon Sep 17 00:00:00 2001 From: Juned Raza <49837673+junedr375@users.noreply.github.com> Date: Tue, 21 Mar 2023 10:59:56 +0530 Subject: [PATCH] [UPDATE]|Added renderText info --- lib/src/match_text.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/match_text.dart b/lib/src/match_text.dart index c3ef40d..c079d14 100644 --- a/lib/src/match_text.dart +++ b/lib/src/match_text.dart @@ -27,6 +27,9 @@ class MatchText { /// and @michel the value to display on interface. /// Your pattern for ID & username extraction : `/\[(@[^:]+):([^\]]+)\]/`i /// Displayed text will be : Mention `@michel` + /// you must return a map with two keys + /// [display] - the text you want to show to the user + /// [value] - the value underneath it Map Function({ required String str, required String pattern,