util/social_text_span_builder library

Classes

MatchSearchResult
Used internally by SocialTextSpanBuilder textStyle matched textstyle, return default if no matches fonud type detected type. returns DetectedType.plain_text by default. text returns text within range. returns empty string if no matches found.
SocialTextSpanBuilder
Builds TextSpan with the provided regular expression, stles and text. defaultTextStyle Optional default textstyle. used for detection types that has not been initialied detectionTextStyles required, used for setting up text styles for types found in DetectedType enum regularExpressions required, used for detecting DetectedType content. default regular expressions can be found in the plugin onTapDetection optional. When set, it assings TapGestureRecognizer to formatted content. It returns SocialContentDetection as response ignoredTextStyle optional. When set, content matched with "ignoreCases" of build function will return this text style, returns default text style if null.